mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
Dont show hidden sub-commands during completion
This commit is contained in:
@@ -104,7 +104,7 @@ func complete_word(word string, completions *Completions, only_args_allowed bool
|
||||
group.Title = "Sub-commands"
|
||||
}
|
||||
for _, sc := range cg.SubCommands {
|
||||
if strings.HasPrefix(sc.Name, word) {
|
||||
if !sc.Hidden && strings.HasPrefix(sc.Name, word) {
|
||||
t := sc.ShortDescription
|
||||
if t == "" {
|
||||
t = sc.HelpText
|
||||
|
||||
Reference in New Issue
Block a user