Textadept
- Home |
- Download |
- Lua API |
- Source |
- Language Modules |
- Stats |
- Wiki |
- Mailing List
_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:
- 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.
- If text is selected and spans a single line, only the selected text is used.
- If no text is selected, the entire buffer is used.
The input text is replaced with the standard output (stdout) of the command.