Clarification on accept-or-print-query vs. become

This commit is contained in:
Junegunn Choi 2023-12-14 23:13:52 +09:00
parent 82954258c1
commit e8b34cb00d
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -9,6 +9,10 @@ CHANGELOG
# You can make CTRL-R paste the current query when there's no match
export FZF_CTRL_R_OPTS='--bind enter:accept-or-print-query'
```
- Note that this new action isn't fundamentally different from the following `become` binding. `become` is apparently more versatile but it's not available on Windows.
```sh
export FZF_CTRL_R_OPTS='--bind "enter:become:if [[ -n {} ]]; then echo {}; else echo {q}; fi"'
```
- Bug fixes
0.44.1