summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-06-07 10:15:49 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-06-07 10:18:01 +1000
commita694c458dd38d960189d4fc4b288e95ab692f404 (patch)
treeb0fe726aad393e9e8f180efcd94d1e8a982ee0ad /pkg/gui/controllers/helpers
parentced773ab18a116f926b2c28507d71cf283701fff (diff)
Support authors and tags in custom command suggestions preset
Diffstat (limited to 'pkg/gui/controllers/helpers')
-rw-r--r--pkg/gui/controllers/helpers/suggestions_helper.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/controllers/helpers/suggestions_helper.go b/pkg/gui/controllers/helpers/suggestions_helper.go
index 786ad7bfe..70fcf168a 100644
--- a/pkg/gui/controllers/helpers/suggestions_helper.go
+++ b/pkg/gui/controllers/helpers/suggestions_helper.go
@@ -157,6 +157,12 @@ func (self *SuggestionsHelper) getTagNames() []string {
})
}
+func (self *SuggestionsHelper) GetTagsSuggestionsFunc() func(string) []*types.Suggestion {
+ tagNames := self.getTagNames()
+
+ return FuzzySearchFunc(tagNames)
+}
+
func (self *SuggestionsHelper) GetRefsSuggestionsFunc() func(string) []*types.Suggestion {
remoteBranchNames := self.getRemoteBranchNames("/")
localBranchNames := self.getBranchNames()