Add 'next-selected' and 'prev-selected' actions

Close #2749
This commit is contained in:
Junegunn Choi
2022-12-11 00:59:34 +09:00
parent 0ad30063ff
commit 18e3b38c69
5 changed files with 54 additions and 1 deletions

View File

@@ -1,8 +1,18 @@
CHANGELOG
=========
0.35.2
0.36.0
------
- Added `next-selected` and `prev-selected` actions to move between selected
items
```sh
# `next-selected` will move the pointer to the next selected item below the current line
# `prev-selected` will move the pointer to the previous selected item above the current line
seq 10 | fzf --multi --bind ctrl-n:next-selected,ctrl-p:prev-selected
# Both actions respect --layout option
seq 10 | fzf --multi --bind ctrl-n:next-selected,ctrl-p:prev-selected --layout reverse
```
- `double-click` will behave the same as `enter` unless otherwise specified,
so you don't have to repeat the same action twice in `--bind` in most cases.
```sh