fzf-tab
fzf-tab copied to clipboard
[FR] Disable group display but keep `$group`
Is your feature request related to a problem? Please describe.
I want to use $group
, so I need to set zstyle ':completion:*:descriptions' format
. However, setting zstyle ':completion:*:descriptions' format
automatically enables a number of features that I don't want, such as groups header, group colors, and prefix. It looks like I can disable prefix with zstyle ':fzf-tab:*' prefix ''
and group colors with zstyle ':fzf-tab:*' group-colors ''
. However, I does not look like I can disable the groups header.
Describe the solution you'd like
At least an option to disable groups header, such as zstyle ':fzf-tab:*' show-group false
. Ideally, enabling group display features should be separate from setting zstyle ':completion:*:descriptions' format
.
@Aloxaf When I set zstyle ':fzf-tab:*' show-group none
with https://github.com/Aloxaf/fzf-tab/commit/bc086fc38cfd680a90c694210fa5c5d88e3d1691, $group
is always __hide__1
. So that doesn't quite close this issue, because it doesn't keep $group
. It looks like zstyle ':fzf-tab:*' show-group brief
has a similar issue.
I think https://github.com/Aloxaf/fzf-tab/blob/51e6755bb32add73469a06274f5b3a0d665ce1df/lib/-ftb-generate-header#L7 would be a good place to check for zstyle ':fzf-tab:*' show-group none
. You'll probably have to handle zstyle ':fzf-tab:*' show-group brief
in the same file, if you want to avoid breaking $group
.
Oh thanks. I haven't notice that!