Commits

Lynn Rees  committed f419958

- cleanup

  • Participants
  • Parent commits d485718

Comments (0)

Files changed (13)

File 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 : '')

File scripts/joinComma.groovy

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

File scripts/joinPeriod.groovy

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

File scripts/joinSpace.groovy

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

File 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 : '') + ')')

File 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 : '') + ')')

File 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 : '') + ')')

File 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 : '') + ')')

File 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 : ''))

File scripts/splitComma.groovy

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

File scripts/splitPeriod.groovy

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

File 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 : '')

File scripts/splitSpace.groovy

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