diff options
author | 2010-12-29 17:21:04 -0500 | |
---|---|---|
committer | 2010-12-29 17:21:04 -0500 | |
commit | d98dd19c2f0f4a84675d07eff34c641949a40019 (patch) | |
tree | 46dcbc3133a69d73bbe9e0c4e314a4e35cfa3371 /doc/manual/10_Advanced.md | |
parent | 99f45c277522bd5773d897447ac1f16c5d9d7d78 (diff) | |
download | textadept-d98dd19c2f0f4a84675d07eff34c641949a40019.tar.gz textadept-d98dd19c2f0f4a84675d07eff34c641949a40019.zip |
The filter-through module handles selected text as stdin better.
Diffstat (limited to 'doc/manual/10_Advanced.md')
-rw-r--r-- | doc/manual/10_Advanced.md | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/manual/10_Advanced.md b/doc/manual/10_Advanced.md index 3295110a..74b56ddc 100644 --- a/doc/manual/10_Advanced.md +++ b/doc/manual/10_Advanced.md @@ -42,10 +42,16 @@ buffer (or a selection). You could do the following from the command entry: A simpler way would be to press `Alt+R` (`Ctrl+Apple+R` on Mac OSX), enter the shell command `sort`, and hit `Enter`. -For shell commands, if text is selected, all text on the lines containing the -selection is used as the standard input (stdin) to the command. Otherwise the -entire buffer is used. Either the selected text or buffer is replaced with the -standard output (stdout) of the command. +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. ## File Encoding |