Aloxaf / fzf-tab

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

[FR] format in fzf ignroes the "%" formatting stuff, like colors... #379

Closed ar4hc closed 1 year ago

ar4hc commented 1 year ago

Is your feature request related to a problem? Please describe. Found these settings for zsh

# https://thevaluable.dev/zsh-completion-guide-examples/
zstyle ':completion:*:*:*:*:descriptions' format '%F{green}-- %d --%f'
zstyle ':completion:*:*:*:*:corrections' format '%F{yellow}!- %d (errors: %e) -!%f'
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'

makes the group headings colorful, but only if i disable fzf-tab. fzf-tab ignores the "%" stuff and echo the format verbatim, but still uses them

Describe the solution you'd like Could fzf also parse the % stuff?

Describe alternatives you've considered Using plain text instead.

Additional context

Random scrennshots, red format applied

Screenshot 2023-07-11 at 18 57 54

No formating applied, just verbatim text:

Screenshot 2023-07-11 at 18 58 10
omares commented 1 year ago

Hey @ar4hc, i got the issue fixed by applying these recommended zstyle definitions https://github.com/Aloxaf/fzf-tab/issues/24#issuecomment-574986122

ar4hc commented 1 year ago

@omares tip solved it. for me.