Skip to content
Myr

Suggest using toggle+up instead of toggle-up

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 2665580 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:CHANGELOG.md+2 added-2 removed
5 unmodified lines
6- Added a new environment variable `$FZF_POS` exported to the child processes. It's the vertical position of the cursor in the list starting from 1.7 ```sh8 # Toggle selection to the top or to the bottom9 seq 30 | fzf --multi --bind 'load:pos(10)' \10 --bind 'shift-up:transform:for _ in $(seq $FZF_POS $FZF_MATCH_COUNT); do echo -n +toggle-up; done' \11 --bind 'shift-down:transform:for _ in $(seq 1 $FZF_POS); do echo -n +toggle-down; done'10 --bind 'shift-up:transform:for _ in $(seq $FZF_POS $FZF_MATCH_COUNT); do echo -n +toggle+up; done' \11 --bind 'shift-down:transform:for _ in $(seq 1 $FZF_POS); do echo -n +toggle+down; done'12 ```13- Added `--with-shell` option to start child processes with a custom shell command and flags14 ```sh15 gem list | fzf --with-shell 'ruby -e' \
2031 unmodified lines