1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Support authors and tags in custom command suggestions preset

This commit is contained in:
Jesse Duffield
2023-06-07 10:15:49 +10:00
parent ced773ab18
commit a694c458dd
3 changed files with 15 additions and 5 deletions

View File

@ -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()