diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-07-23 19:39:01 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-07-23 19:41:06 +0900 |
| commit | 4efcc344c35e8bb7e6ba7bb23e5885051420b361 (patch) | |
| tree | ffa9231de82f616dbeb0a892ea878911ee02f135 /CHANGELOG.md | |
| parent | 5818b58350e080e13ee4b26a2b4f76b7c3712704 (diff) | |
| download | fzf-4efcc344c35e8bb7e6ba7bb23e5885051420b361.tar.gz | |
Add 'trigger(KEY_OR_EVENT[,...])' action
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 16 |
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. |
