From 3e7f032ec200f00f92fa53f9aecde4b989c7dd66 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 16 Jan 2025 01:38:45 +0900 Subject: Allow displaying --nth parts in a different text style Close #4183 --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 75e873b2..5c772aa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,21 @@ Also, fzf now offers "style presets" for quick customization, which can be activ # Start with --nth 1, then 2, then 3, then back to the default, 1 echo 'foo foobar foobarbaz' | fzf --bind 'space:change-nth(2|3|)' --nth 1 -q foo ``` +- `--nth` parts of each line can now be rendered in a different text style + ```sh + # nth in a different style + ls -al | fzf --nth -1 --color nth:italic + ls -al | fzf --nth -1 --color nth:reverse + ls -al | fzf --nth -1 --color nth:reverse:bold + + # Dim the other parts + ls -al | fzf --nth -1 --color nth:regular,fg:dim,current-fg:dim + + # With 'change-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|)' + ``` - 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 '\|'` - Bug fixes -- cgit v1.2.3