Lynn Rees avatar Lynn Rees committed 261657f

- fix script

Comments (0)

Files changed (6)

part/_JoinAndReplaceFirst.groovy

 def firstNode = c.selecteds.first()
 def mark = ui.showInputDialog(
-	node.delegate, "Enter characters to join nodes and replace '$(firstNode.text}...", '')
+	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() }

part/_JoinAndReplaceLast.groovy

 def lastNode = c.selecteds.last()
 def mark = ui.showInputDialog(
-	node.delegate, "Enter characters to join nodes and replace '${lastNode.text}'...", '')
+	node.delegate, "Enter characters to join nodes with and replace '${lastNode.text}'...", '')
 lastNode.text = c.selecteds.reverse().tail().collect {
 	it.plainText.trim()
 }.reverse().join(mark ? mark : '')

part/_JoinOnChars.groovy

-joinPrompt('Enter characters to join nodes on...')
+joinPrompt('Enter characters to join nodes with...')

scripts/JoinAndReplaceFirst.groovy

 // @ExecutionModes({ON_SINGLE_NODE})
 def firstNode = c.selecteds.first()
 def mark = ui.showInputDialog(
-	node.delegate, "Enter characters to join nodes and replace '$(firstNode.text}...", '')
+	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() }
 

scripts/JoinAndReplaceLast.groovy

 // @ExecutionModes({ON_SINGLE_NODE})
 def lastNode = c.selecteds.last()
 def mark = ui.showInputDialog(
-	node.delegate, "Enter characters to join nodes and replace '${lastNode.text}'...", '')
+	node.delegate, "Enter characters to join nodes with and replace '${lastNode.text}'...", '')
 lastNode.text = c.selecteds.reverse().tail().collect {
 	it.plainText.trim()
 }.reverse().join(mark ? mark : '')

scripts/JoinOnChars.groovy

     def mark = ui.showInputDialog(node.delegate, msg, '')
     joinText(mark ? mark : '')
 }
-joinPrompt('Enter characters to join nodes on...')
+joinPrompt('Enter characters to join nodes with...')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.