From 7afcacf1f5302a2779a771e9c0fd5406626c6fe7 Mon Sep 17 00:00:00 2001 From: rsteube Date: Fri, 5 Jan 2024 21:51:52 +0100 Subject: [PATCH] git: add - dash completion --- completers/git_completer/cmd/add.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/completers/git_completer/cmd/add.go b/completers/git_completer/cmd/add.go index f90a3cc04f..75550be1e8 100644 --- a/completers/git_completer/cmd/add.go +++ b/completers/git_completer/cmd/add.go @@ -45,4 +45,8 @@ func init() { carapace.Gen(addCmd).PositionalAnyCompletion( git.ActionChanges(git.ChangeOpts{Unstaged: true}).FilterArgs(), ) + + carapace.Gen(addCmd).DashAnyCompletion( + carapace.ActionPositional(addCmd), + ) }