From d857bacd69e7e667a98783dcc87f8909ea33aeb7 Mon Sep 17 00:00:00 2001 From: maxlandon Date: Mon, 5 May 2025 10:42:19 +0200 Subject: [PATCH] Remove separate groups of command flags --- completer.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/completer.go b/completer.go index 98fb22d..bf33b1a 100644 --- a/completer.go +++ b/completer.go @@ -46,6 +46,13 @@ func (c *Console) complete(input []rune, pos int) readline.Completions { if !completions.Nospace.Matches(val.Value) { raw[idx].Value = val.Value + " " } + + // Remove short/long flags grouping + // join to single tag group for classic zsh side-by-side view + switch val.Tag { + case "shorthand flags", "longhand flags": + raw[idx].Tag = "flags" + } } // Assign both completions and command/flags/args usage strings.