diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-02 01:48:52 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-02-02 02:23:47 +0900 |
| commit | 32234be7a271196b62689974bf2002034f7e712e (patch) | |
| tree | f4ccbb62e4b8780c1fddf8116374ceea0f36bfa0 /CHANGELOG.md | |
| parent | 178b49832e09a78a9f8f5ce1647d5f36b667a097 (diff) | |
| download | fzf-32234be7a271196b62689974bf2002034f7e712e.tar.gz | |
FZF_KEY enhancements
* 'enter' instead of 'ctrl-m'
* 'space' instead of ' '
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index daee60a4..258b6c9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,19 @@ CHANGELOG fzf --header '[src] [test]' --no-input --layout reverse \ --header-border bottom --input-border \ --bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}' + + # Vim-like mode switch + fzf --layout reverse-list --no-input \ + --bind 'j:down,k:up,/:show-input+unbind(j,k)' \ + --bind 'enter,esc,ctrl-c:transform: + if [[ $FZF_INPUT_STATE = enabled ]]; then + echo "rebind(j,k)+hide-input" + elif [[ $FZF_KEY = enter ]]; then + echo accept + else + echo abort + fi + ' ``` - You can later show the input section using `show-input` or `toggle-input` action, and hide it again using `hide-input`, or `toggle-input`. - Extended `{q}` placeholder to support ranges. e.g. `{q:1}`, `{q:2..}`, etc. |
