From e8b34cb00d4446e69e7af3d31eafcf76747d34c7 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 14 Dec 2023 23:13:52 +0900 Subject: [PATCH] Clarification on accept-or-print-query vs. become --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63d6626..378238d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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