diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2016-01-14 02:35:43 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-01-14 02:35:43 +0900 |
| commit | f6c6e59a50d580595fd5117ab51b058988fc5f83 (patch) | |
| tree | 13051b91ef1f667a3860d5c66d8161503bd573c4 /shell/completion.bash | |
| parent | 45143f9541d55c5efdadc7ea8acd9474a19eb8c6 (diff) | |
| download | fzf-f6c6e59a50d580595fd5117ab51b058988fc5f83.tar.gz | |
Add toggle-in and toggle-out for --bind
Related: #452
When `--multi` is set, tab key will bring your cursor down, and
shift-tab up. But since fzf by default draws the screen in bottom-up
fashion, one may feel that the opposite of the behavior is more
desirable and choose to customize the key bindings as follows.
export FZF_DEFAULT_OPTS="--bind tab:toggle-up,shift-tab:toggle-down"
This configuration, however, becomes no longer straightforward when
`--reverse` is set and fzf switches to top-down layout. To address the
requirement, this commit adds `toggle-in` and `toggle-out` option which
switch direction depending on `--reverse`-ness.
export FZF_DEFAULT_OPTS="--bind tab:toggle-out,shift-tab:toggle-in"
Diffstat (limited to 'shell/completion.bash')
0 files changed, 0 insertions, 0 deletions
