Skip to content

Commit

Permalink
zsh: join shorthand and longhand flags to single group
Browse files Browse the repository at this point in the history
restores the classic side-by-side view which got lost due to the refined tags
  • Loading branch information
rsteube committed Oct 16, 2024
1 parent 786a92b commit e28295f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/shell/zsh/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e28295f

Please sign in to comment.