Skip to content

Commit

Permalink
Support multiple keys for key bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellanata authored Jan 10, 2025
1 parent 9b89537 commit 1dd45e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ func (kb Keybinding) NewBinding(previous *key.Binding) key.Binding {
helpDesc = previous.Help().Desc
}

keys := strings.Split(kb.Key, "/")
return key.NewBinding(
key.WithKeys(kb.Key),
key.WithKeys(keys...),
key.WithHelp(kb.Key, helpDesc),
)
}
Expand Down

0 comments on commit 1dd45e6

Please sign in to comment.