Contents

_M.textadept.filter_through

Filters text through shell commands.


Functions


filter_through()

Prompts the user for a Linux, BSD, Mac OSX, or Windows shell command to filter text through with standard input (stdin) as follows:

  1. If text is selected and spans multiple lines, all text on the lines containing the selection is used. However, if the end of the selection is at the beginning of a line, only the EOL (end of line) characters from the previous line are included as input. The rest of the line is excluded.
  2. If text is selected and spans a single line, only the selected text is used.
  3. If no text is selected, the entire buffer is used.

The input text is replaced with the standard output (stdout) of the command.