summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-06-02 17:58:44 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-06-02 17:58:44 +0900
commit36600eaaa93f7159e1de5a952fdd568a3c2836d4 (patch)
treefc76987667265fdc7c395594a7ed007b93d34201
parente2f93e5a2dc30f2785916e0b2e7a2ab974d1ff0a (diff)
downloadfzf-36600eaaa93f7159e1de5a952fdd568a3c2836d4.tar.gz
Update CHANGELOG: clarification
-rw-r--r--CHANGELOG.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e823e096..7fce1944 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