m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 14:23:47 -05:00

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

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