Contents

_M.textadept.filter_through

Filter-Through for the textadept module.


Functions


filter_through ()

Prompts for a Linux, Mac OSX, or Windows shell command to filter text through. The standard input (stdin) for shell commands is determined 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.