fzf icon indicating copy to clipboard operation
fzf copied to clipboard

Allow specifying background colour of the `hl` and `selected-hl`

Open savchenko opened this issue 9 months ago • 2 comments

It doesn't seem to be possible to specify background of the highlighted substrings.

This prevents from highlighting content via the change of BG colour instead of the FG.

For example, this isn't doable:

Image

Please consider adding hl-bg and selected-hl-bg highlight groups.

savchenko avatar Apr 19 '25 01:04 savchenko

For the moment, you can use reverse attribute to achieve a similar effect.

fzf --color fg:black,bg:white,hl:yellow:reverse,hl+:bright-cyan:reverse

junegunn avatar May 06 '25 01:05 junegunn

Does not seem to work as intended?

Image

savchenko avatar May 09 '25 20:05 savchenko