summaryrefslogtreecommitdiffstats
path: root/pkg/gui/services
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-05-08 14:23:32 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-05-08 14:26:18 +1000
commit6f8063217ddf132dca36b75affaa7f7273f89d9d (patch)
tree871c1b76adf464b11fe04c43bbd2a4a7ac5d452e /pkg/gui/services
parent125e948d82c33226f92a1ebe18361633116370d3 (diff)
rename displayString to label for menu items
Diffstat (limited to 'pkg/gui/services')
-rw-r--r--pkg/gui/services/custom_commands/handler_creator.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/services/custom_commands/handler_creator.go b/pkg/gui/services/custom_commands/handler_creator.go
index dbae84de7..446ac95f4 100644
--- a/pkg/gui/services/custom_commands/handler_creator.go
+++ b/pkg/gui/services/custom_commands/handler_creator.go
@@ -102,7 +102,7 @@ func (self *HandlerCreator) inputPrompt(prompt *config.CustomCommandPrompt, wrap
func (self *HandlerCreator) menuPrompt(prompt *config.CustomCommandPrompt, wrappedF func(string) error) error {
menuItems := slices.Map(prompt.Options, func(option config.CustomCommandMenuOption) *types.MenuItem {
return &types.MenuItem{
- DisplayStrings: []string{option.Name, style.FgYellow.Sprint(option.Description)},
+ LabelColumns: []string{option.Name, style.FgYellow.Sprint(option.Description)},
OnPress: func() error {
return wrappedF(option.Value)
},
@@ -127,7 +127,7 @@ func (self *HandlerCreator) menuPromptFromCommand(prompt *config.CustomCommandPr
menuItems := slices.Map(candidates, func(candidate *commandMenuEntry) *types.MenuItem {
return &types.MenuItem{
- DisplayStrings: []string{candidate.label},
+ LabelColumns: []string{candidate.label},
OnPress: func() error {
return wrappedF(candidate.value)
},