fzf-tab icon indicating copy to clipboard operation
fzf-tab copied to clipboard

[FR] Disable group display but keep `$group`

Open justinlovinger opened this issue 3 years ago • 2 comments

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.

justinlovinger avatar May 25 '21 20:05 justinlovinger

@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.

justinlovinger avatar Jun 12 '21 14:06 justinlovinger

Oh thanks. I haven't notice that!

Aloxaf avatar Jun 13 '21 03:06 Aloxaf