From b712f2bb6a5c1eed5661072604e308951ef655f2 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 16 Jan 2025 09:23:25 +0900 Subject: Export the current nth value as $FZF_NTH --- CHANGELOG.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c772aa8..28d21bbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -92,10 +92,11 @@ Also, fzf now offers "style presets" for quick customization, which can be activ # Dim the other parts ls -al | fzf --nth -1 --color nth:regular,fg:dim,current-fg:dim - # With 'change-nth' + # With 'change-nth'. The current nth option is exported as $FZF_NTH. ps -ef | fzf --reverse --header-lines 1 --header-border bottom --input-border \ - --color nth:regular,fg:dim,current-fg:dim \ - --nth 8.. --bind 'ctrl-n:change-nth(..|1|2|3|4|5|6|7|)' + --color nth:regular,fg:dim,current-fg:dim \ + --nth 8.. --bind 'ctrl-n:change-nth(1|2|3|4|5|6|7|)' \ + --bind 'result:transform-prompt:echo "${FZF_NTH}> "' ``` - A single-character delimiter is now treated as a plain string delimiter rather than a regular expression delimiter, even if it's a regular expression meta-character. - This means you can just write `--delimiter '|'` instead of escaping it as `--delimiter '\|'` -- cgit v1.2.3