From e28295f5bc26fe1c3daab44bece764a39c535d28 Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 16 Oct 2024 22:02:41 +0200 Subject: [PATCH] zsh: join shorthand and longhand flags to single group restores the classic side-by-side view which got lost due to the refined tags --- internal/shell/zsh/action.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/shell/zsh/action.go b/internal/shell/zsh/action.go index f18a8988..ff258992 100644 --- a/internal/shell/zsh/action.go +++ b/internal/shell/zsh/action.go @@ -47,6 +47,12 @@ func quoteValue(s string) string { // ActionRawValues formats values for zsh func ActionRawValues(currentWord string, meta common.Meta, values common.RawValues) string { + for index, value := range values { + switch value.Tag { + case "shorthand flags", "longhand flags": + values[index].Tag = "flags" // join to single tag group for classic zsh side-by-side view + } + } tagGroup := make([]string, 0) values.EachTag(func(tag string, values common.RawValues) {