mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Start on supporting auto-suggestions when checking out a branch
switch to other fuzzy package with no dependencies
This commit is contained in:
15
pkg/gui/presentation/suggestions.go
Normal file
15
pkg/gui/presentation/suggestions.go
Normal file
@ -0,0 +1,15 @@
|
||||
package presentation
|
||||
|
||||
func GetSuggestionListDisplayStrings(suggestions []string) [][]string {
|
||||
lines := make([][]string, len(suggestions))
|
||||
|
||||
for i := range suggestions {
|
||||
lines[i] = getSuggestionDisplayStrings(suggestions[i])
|
||||
}
|
||||
|
||||
return lines
|
||||
}
|
||||
|
||||
func getSuggestionDisplayStrings(suggestion string) []string {
|
||||
return []string{suggestion}
|
||||
}
|
Reference in New Issue
Block a user