Commits

Lynn Rees committed f419958

- cleanup

Comments (0)

Files changed (13)

scripts/joinChars.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+def mark = ui.showInputDialog(
+	node.delegate, 'Enter characters to join nodes with...', ''
+)
+
+new WikdNode().joinPlainText(mark ? mark : '')

scripts/joinComma.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+new WikdNode().joinPlainText(', ')

scripts/joinPeriod.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+new WikdNode().joinPlainText('. ')

scripts/joinSpace.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+new WikdNode().joinPlainText(' ')

scripts/splitAfterChars.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+import java.util.regex.Pattern
+
+
+def mark = ui.showInputDialog(node.delegate, 'Enter characters to split node text after...', '')
+
+new WikdNode().splitPlainText('(?<=' + Pattern.quote(mark ? mark : '') + ')')

scripts/splitAfterRegex.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+def mark = ui.showInputDialog(
+	node.delegate, 'Enter regular expression to split node text after...', ''
+)
+
+new WikdNode().splitPlainText('(?<=' + (mark ? mark : '') + ')')

scripts/splitBeforeChars.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+import java.util.regex.Pattern
+
+
+def mark = ui.showInputDialog(
+	node.delegate, 'Enter characters to split node text before...', ''
+)
+
+new WikdNode().splitPlainText('(?=' + Pattern.quote(mark ? mark : '') + ')')

scripts/splitBeforeRegex.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+def mark = ui.showInputDialog(
+	node.delegate, 'Enter regular expression to split node text before...', ''
+)
+
+new WikdNode().splitPlainText('(?=' + (mark ? mark : '') + ')')

scripts/splitChars.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+import java.util.regex.Pattern
+
+
+def mark = ui.showInputDialog(
+	node.delegate, 'Enter characters to split node text on...', ''
+)
+
+new WikdNode().splitPlainText(Pattern.quote(mark ? mark : ''))

scripts/splitComma.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+new WikdNode().splitPlainText(',')

scripts/splitPeriod.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+new WikdNode().splitPlainText('\\.')

scripts/splitRegex.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+def mark = ui.showInputDialog(
+	node.delegate, 'Enter regular expression to split node text on...', ''
+)
+
+new WikdNode().splitPlainText(mark ? mark : '')

scripts/splitSpace.groovy

+
+// @CacheScriptContent(true)
+// @ExecutionModes({ON_SINGLE_NODE})
+
+
+new WikdNode().splitPlainText(' ')