summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-07-23 19:39:01 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-07-23 19:41:06 +0900
commit4efcc344c35e8bb7e6ba7bb23e5885051420b361 (patch)
treeffa9231de82f616dbeb0a892ea878911ee02f135 /CHANGELOG.md
parent5818b58350e080e13ee4b26a2b4f76b7c3712704 (diff)
downloadfzf-4efcc344c35e8bb7e6ba7bb23e5885051420b361.tar.gz
Add 'trigger(KEY_OR_EVENT[,...])' action
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c0e2a872..1a362f7e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,22 @@ CHANGELOG
echo "execute-silent(echo -n \{} | pbcopy)+bell"
'
```
+- Added `trigger(...)` action that triggers events bound to another key or event.
+ ```sh
+ # You can click on each key name to trigger the actions bound to that key
+ fzf --footer 'Ctrl-E: Edit / Ctrl-V: View / Ctrl-Y: Copy to clipboard' \
+ --with-shell 'bash -c' \
+ --bind 'ctrl-e:execute:vim {}' \
+ --bind 'ctrl-v:execute:view {}' \
+ --bind 'ctrl-y:execute-silent(echo -n {} | pbcopy)+bell' \
+ --bind 'click-footer:transform:
+ [[ $FZF_CLICK_FOOTER_WORD =~ Ctrl ]] && echo "trigger(${FZF_CLICK_FOOTER_WORD%:})"
+ '
+ ```
+ - You can specify a series of keys and events
+ ```sh
+ fzf --bind 'a:up,b:trigger(a,a,a)'
+ ```
- Added support for `{*n}` and `{*nf}` placeholder.
- `{*n}` evaluates to the zero-based ordinal index of all matched items.
- `{*nf}` evaluates to the temporary file containing that.