summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-07-22 23:15:10 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-07-22 23:24:23 +0900
commit7941129cc406a07da2b748f41c19b040224585e4 (patch)
treeb540410de72d1bf57fb88c1080be28e0d954702a /CHANGELOG.md
parent069d71a8401530028e2ea407904462ef8c435d88 (diff)
downloadfzf-7941129cc406a07da2b748f41c19b040224585e4.tar.gz
Add 'click-footer' event
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3f489606..c0e2a872 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,27 @@
CHANGELOG
=========
+0.65.0
+------
+- Added `click-footer` event that is triggered when the footer section is clicked. When the event is triggered, the following environment variables are set:
+ - `$FZF_CLICK_FOOTER_COLUMN` - clicked column (1-based)
+ - `$FZF_CLICK_FOOTER_LINE` - clicked line (1-based)
+ - `$FZF_CLICK_FOOTER_WORD` - the word under the cursor
+ ```sh
+ fzf --footer $'[Edit] [View]\n[Copy to clipboard]' \
+ --with-shell 'bash -c' \
+ --bind 'click-footer:transform:
+ [[ $FZF_CLICK_FOOTER_WORD =~ Edit ]] && echo "execute:vim \{}"
+ [[ $FZF_CLICK_FOOTER_WORD =~ View ]] && echo "execute:view \{}"
+ (( FZF_CLICK_FOOTER_LINE == 2 )) && (( FZF_CLICK_FOOTER_COLUMN < 20 )) &&
+ echo "execute-silent(echo -n \{} | pbcopy)+bell"
+ '
+ ```
+- 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.
+- Bug fixes
+
0.64.0
------
- Added `multi` event that is triggered when the multi-selection has changed.