diff options
author | Denis Isidoro <denisidoro@users.noreply.github.com> | 2020-03-19 22:01:50 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 22:01:50 -0300 |
commit | 10f02197921f6ec7c9a5fb324c6421573eef5e95 (patch) | |
tree | 0e1797304fe8225d71e6d49ceb7c60b00c2fa637 /tests | |
parent | 64045e32caff76844f9b78c8433769b470c0e836 (diff) |
Forward many more parameters to fzf after `---` (#294)v2.3.0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cheats/more_cases.cheat | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/cheats/more_cases.cheat b/tests/cheats/more_cases.cheat index dc3003c..651001a 100644 --- a/tests/cheats/more_cases.cheat +++ b/tests/cheats/more_cases.cheat @@ -32,6 +32,9 @@ echo "I like these examples: "$(printf '%s' "<examples>" | sed 's/^..*$/"&"/' | # multiple replacements -> "foo" echo "<x> <y> <x> <z>" +# with preview +cat "<file>" + $ x: echo '1 2 3' | tr ' ' '\n' $ y: echo 'a b c' | tr ' ' '\n' $ z: echo 'foo bar' | tr ' ' '\n' @@ -39,8 +42,9 @@ $ table_elem: echo -e '0 rust rust-lang.org\n1 clojure clojure.org' --- $ table_elem2: echo -e '0;rust;rust-lang.org\n1;clojure;clojure.org' --- --column 2 --delimiter ';' $ multi_col: ls -la | awk '{print $1, $9}' --- --column 2 --delimiter '\s' --multi $ langs: echo 'clojure rust javascript' | tr ' ' '\n' --- --multi -$ examples: echo -e 'foo bar\nlorem ipsum\ndolor sit' --- --multi -$ multiword: echo -e 'foo bar\nlorem ipsum\ndolor sit\nbaz' +$ examples: echo -e 'foo bar\nlorem ipsum\ndolor sit' --- --mult +$ multiword: echo -e 'foo bar\nlorem ipsum\ndolor sit\nbaz'i +$ file: ls . --- --preview 'cat {}' --preview-window '50%' # this should be displayed echo hi
\ No newline at end of file |