diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-09-11 21:05:55 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-09-11 21:05:55 +0200 |
commit | b2323ca203e99e281cae4ada6ccdc1799de1f5f9 (patch) | |
tree | 6204e341f5da9110d84ab2745eadcddf579e6e34 /doc_src | |
parent | 2c648c80c83de50620e4c216a59024398f4e152e (diff) |
commandline docs: Add examples for the filters
i.e. "-t", "-b", "-j" and "-p"
Diffstat (limited to 'doc_src')
-rw-r--r-- | doc_src/commandline.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc_src/commandline.txt b/doc_src/commandline.txt index 347f4870..54869fa9 100644 --- a/doc_src/commandline.txt +++ b/doc_src/commandline.txt @@ -57,3 +57,24 @@ The following options output metadata about the commandline state: \subsection commandline-example Example `commandline -j $history[3]` replaces the job under the cursor with the third item from the command line history. + +If the commandline contains +\fish +>_ echo $fl___ounder >&2 | less; and echo $catfish +\endfish + +(with the cursor on the "o" of "flounder") + +Then the following invocations behave like this: +\fish +>_ commandline -t +$flounder +>_ commandline -ct +$fl +>_ commandline -b # or just commandline +echo $flounder >&2 | less; and echo $catfish +>_ commandline -p +echo $flounder >&2 +>_ commandline -j +echo $flounder >&2 | less +\endfish |