Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 8295425 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:CHANGELOG.md+4 added
7 unmodified lines
8 ```sh9 # You can make CTRL-R paste the current query when there's no match10 export FZF_CTRL_R_OPTS='--bind enter:accept-or-print-query'11 ```12 - 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.13 ```sh14 export FZF_CTRL_R_OPTS='--bind "enter:become:if [[ -n {} ]]; then echo {}; else echo {q}; fi"'15 ```16- Bug fixes17180.44.119------
1764 unmodified lines