Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!
MIT License
3.28k stars 94 forks source link

[Q] How does one control the colors of the highlighted item? #340

Closed quicknir closed 1 year ago

quicknir commented 1 year ago

If I do, say:

export FZF_DEFAULT_OPTS="-e \
   --color 16,fg:10,bg:-1,hl:1,hl+:1,bg+:7,fg+:-1:underline \
   --color prompt:4,pointer:13,marker:13,spinner:3,info:3"

zstyle ':fzf-tab:*' fzf-flags $(echo $FZF_DEFAULT_OPTS)

I can observe that I the focused item does get underlined. However, setting the foreground color of fg+ does not change the color of the highlighted text, similarly I cannot control the background either. I can control the behavior of most other elements, e.g. the pointer, but not this. I observe the same issue whether I'm completing git, kill, cd,

Is this supposed to work or is there another way to control the color?

quicknir commented 1 year ago

This turned out to be an issue with fzf itself, and to top it off, some user error, as described here: https://github.com/junegunn/fzf/issues/3123. Sorry!