Command Selection Swiss Knife

The SwissKnife command is a powerful command that enables you to combine several transformations to the selected text.

When selecting the Swiss Knife... menu item, the following dialog

Swiss Knife Command Input

will help you specify the SwissKnife command parameters:

removeLineBreaks

Specify if you want to remove line breaks.

removeEmptyLines

Specify if you want to remove empty lines.

startOfLineTransform

Specify if you want to transform start of lines:

  • Delete means you want to delete the start of line noise.
  • TrimLeft means you want to remove leading whitespace.
  • ReplaceChars indicates that you want to replace start of line noise by startOfLineChar

startOfLineChar

Used when startOfLineTransform = "ReplaceChars".

endOfLineTransform

Specify if you want to transform end of lines:

  • Delete means you want to delete the start of line noise.
  • TrimRight means you want to remove trailing whitespace.
  • ReplaceChars indicates that you want to replace end of line noise by endOfLineChar

endOfLineChar

Used when endOfLineTransform = "ReplaceChars".

linePrefix

Specify a string with which you want to prefix each line.

lineSuffix

Specify a string with which you want to suffix each line.

capitalsSeparateWords

Specify if capitals separate words.

wordSeparator

Specify a word separator string.

letterSeparator

Specify a letter separator character.

replaceHyphensBy

Specify a replacement character for hyphens.

replaceUnderscoresBy

Specify a replacement character for underscores.

Note that:

{SwissKnife}
...
{/SwissKnife}

is equivalent to:

{CopySelection}
{SwissKnifeClipboard}
...
{/SwissKnifeClipboard}
{Paste}