diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 13:14:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 20:48:17 +1100 |
commit | da3b0bf7c8aa6202d5eb9c8178f6648bc695336a (patch) | |
tree | cd0666ae4253469f8f2f1e349357be37bfb3d571 /pkg/gui/presentation | |
parent | 90ade3225f55652d40c6f0266e50f5328390f02b (diff) |
Start on supporting auto-suggestions when checking out a branch
switch to other fuzzy package with no dependencies
Diffstat (limited to 'pkg/gui/presentation')
-rw-r--r-- | pkg/gui/presentation/suggestions.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/gui/presentation/suggestions.go b/pkg/gui/presentation/suggestions.go new file mode 100644 index 000000000..2e408e675 --- /dev/null +++ b/pkg/gui/presentation/suggestions.go @@ -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} +} |