mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
support labels for suggestions which are distinct from values
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
package presentation
|
||||
|
||||
func GetSuggestionListDisplayStrings(suggestions []string) [][]string {
|
||||
import (
|
||||
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
||||
)
|
||||
|
||||
func GetSuggestionListDisplayStrings(suggestions []*types.Suggestion) [][]string {
|
||||
lines := make([][]string, len(suggestions))
|
||||
|
||||
for i := range suggestions {
|
||||
@ -10,6 +14,6 @@ func GetSuggestionListDisplayStrings(suggestions []string) [][]string {
|
||||
return lines
|
||||
}
|
||||
|
||||
func getSuggestionDisplayStrings(suggestion string) []string {
|
||||
return []string{suggestion}
|
||||
func getSuggestionDisplayStrings(suggestion *types.Suggestion) []string {
|
||||
return []string{suggestion.Label}
|
||||
}
|
||||
|
Reference in New Issue
Block a user