Do not apply nth style when the whole range is covered

This commit is contained in:
Junegunn Choi
2025-01-16 10:05:26 +09:00
parent b712f2bb6a
commit 1313510890
3 changed files with 25 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ Also, fzf now offers "style presets" for quick customization, which can be activ
# 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|)' \
--bind 'ctrl-n:change-nth(8..|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.