-
Notifications
You must be signed in to change notification settings - Fork 232
Show the quit keybind in help #721
Copy link
Copy link
Open
Description
Description
The quit keybind isn't currently shown in the help for most fields. As an example, for the field input, these are the only keybinds which are rendered:
// KeyBinds returns the help message for the input field.
func (i *Input) KeyBinds() []key.Binding {
if i.textinput.ShowSuggestions {
return []key.Binding{i.keymap.AcceptSuggestion, i.keymap.Prev, i.keymap.Submit, i.keymap.Next}
}
return []key.Binding{i.keymap.Prev, i.keymap.Submit, i.keymap.Next}
}if g.showHelp && len(errors) <= 0 {
parts = append(parts, g.help.ShortHelpView(g.selector.Selected().KeyBinds()))
}Perhaps it'd make sense to render the g.selector.Selected().KeyBinds() keybinds in addition to the g.keymap.Quit keybinds (among other group level keybinds).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels