Shorthelp/Fullhelp

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-08-20 20:30:55 +02:00
parent e77eaf4e2c
commit ccc353261b
2 changed files with 15 additions and 3 deletions
+6
View File
@@ -37,6 +37,12 @@ func (k listKeyMap) globalBindings() []key.Binding {
}
}
func (k listKeyMap) shortHelpBindings() []key.Binding {
return []key.Binding{
k.Open, k.Allow, k.Block, k.Reject, k.Filter, k.Quit,
}
}
var listKeys = listKeyMap{
Open: key.NewBinding(key.WithKeys("enter", "tab"), key.WithHelp("enter/tab", "select action")),
Filter: key.NewBinding(key.WithKeys("/"), key.WithHelp("/", "filter")),