Closed Archdsenna closed 2 months ago
I have this similar problem.
The font is hard to see. And changing the fg value only works for the fzf.
export FZF_DEFAULT_OPTS=" \
--color=bg+:#ccd0da,spinner:#dc8a78,hl:#d20f39 \
--color=fg:#4c4f69,header:#d20f39,info:#8839ef,pointer:#dc8a78 \
--color=marker:#7287fd,fg+:#4c4f69,prompt:#8839ef,hl+:#d20f39 \
--color=selected-bg:#bcc0cc \
--multi"
Don't use FZF_DEFAULT_OPTS
and --preview
, use fzf-flags
and fzf-preview
instead.
zstyle ':fzf-tab:*' fzf-flags --color fg:23,fg+:23,bg+:151,hl:1,hl+:1,info:23,border:23,gutter:-1,prompt:29,pointer:9,query:0,header:23 --height=100% --layout=reverse --info=inline --margin=1 --padding=1 --ansi --preview-window=right:50% --pointer '❯'
zstyle ':fzf-tab:*' fzf-preview 'bat --style=numbers --color=always $realpath'
My FZF-TAB color configuration does not fully inherit the FZF_DEFAULT_OPTS color setting of fzf, This is my fzf configuration:
export FZF_DEFAULT_OPTS="--color fg:23,fg+:23,bg+:151,hl:1,hl+:1,info:23,border:23,gutter:-1,prompt:29,pointer:9,query:0,header:23 \ --height=100% --layout=reverse --info=inline --margin=1 --padding=1 --ansi \ --preview 'bat --style=numbers --color=always {}' --preview-window=right:50% \ --pointer '❯'"
This is the interface of fzf:
The following is the interface of fzf-tab:
You can see that in the matching result of the list, the color of the current item is displayed correctly, but the matching character of the non-current item is not displayed as expected.
In addition, there is a problem, fzf-tab preview prompt error:
fork/exec /bin/zsh: invalid argument
How do I configure hl(not the current list of matching character colors) color in fzf-tab to color 1 out of 256 colors?