From 36600eaaa93f7159e1de5a952fdd568a3c2836d4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 2 Jun 2024 17:58:44 +0900 Subject: [PATCH] Update CHANGELOG: clarification --- CHANGELOG.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e823e09..7fce194 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,11 +50,15 @@ CHANGELOG # Vim will work fine without /dev/tty redirection ls | fzf --bind 'space:execute:vim {}' > selected ``` -- Added `print(...)` action to queue arbitrary string to be printed on exit +- Added `print(...)` action to queue an arbitrary string to be printed on exit. This was mainly added to work around the limitation of `--expect` where it's not compatible with `--bind` on the same key and it would ignore other actions bound to it. ```sh - fzf --bind 'space:print(space pressed)+accept' + # This doesn't work as expected because --expect is not compatible with --bind + fzf --multi --expect ctrl-y --bind 'ctrl-y:select-all' + + # This is something you can do instead + fzf --multi --bind 'enter:print()+accept,ctrl-y:select-all+print(ctrl-y)+accept' ``` - - This is similar to `--expect` but it allows you to queue multiple arbitrary strings + - We also considered making them compatible, but realized that some users may have been relying on the current behavior. - [`NO_COLOR`](https://no-color.org/) environment variable is now respected. If the variable is set, fzf defaults to `--no-color` unless otherwise specified. 0.52.1