Skip to content

Commit 870dca5

Browse files
authored
Merge pull request #71 from reeflective/dev
Remove separate groups of command flags
2 parents 7703f85 + d857bac commit 870dca5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

completer.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ func (c *Console) complete(input []rune, pos int) readline.Completions {
4646
if !completions.Nospace.Matches(val.Value) {
4747
raw[idx].Value = val.Value + " "
4848
}
49+
50+
// Remove short/long flags grouping
51+
// join to single tag group for classic zsh side-by-side view
52+
switch val.Tag {
53+
case "shorthand flags", "longhand flags":
54+
raw[idx].Tag = "flags"
55+
}
4956
}
5057

5158
// Assign both completions and command/flags/args usage strings.

0 commit comments

Comments
 (0)