From e6ae253f1491d23b7156d1d73808ed7506f08fa2 Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 9 Jan 2024 15:08:26 +0100 Subject: [PATCH] git: am - dash completion --- completers/git_completer/cmd/am.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/completers/git_completer/cmd/am.go b/completers/git_completer/cmd/am.go index c883a57b3d..857ad372d4 100644 --- a/completers/git_completer/cmd/am.go +++ b/completers/git_completer/cmd/am.go @@ -69,4 +69,12 @@ func init() { "show-current-patch": carapace.ActionValues("diff", "raw"), "whitespace": git.ActionWhitespaceModes(), }) + + carapace.Gen(amCmd).PositionalAnyCompletion( + carapace.ActionFiles(), + ) + + carapace.Gen(amCmd).DashAnyCompletion( + carapace.ActionPositional(amCmd), + ) }