Textadept
- Home |
- Download |
- Lua API |
- Source |
- Language Modules |
- Stats |
- Wiki |
- Mailing List
_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:
- 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.