Source

wikdNode / part / _JoinAndReplaceFirst.groovy

The branch 'default' does not exist.
Full commit
1
2
3
4
5
def firstNode = c.selecteds.first()
def mark = ui.showInputDialog(
	node.delegate, "Enter characters to join nodes with and replace '${firstNode.text}...", '')
firstNode.text = c.selecteds.tail().collect { it.plainText.trim() }.join(mark ? mark : '')
c.selecteds.tail().each { it.delete() }