From 1dd45e62576951f278e23b776cb165ae8a142fff Mon Sep 17 00:00:00 2001 From: Gabriel Lanata Date: Fri, 10 Jan 2025 11:59:45 -0800 Subject: [PATCH] Support multiple keys for key bindings --- config/parser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/parser.go b/config/parser.go index b30b52f3..5b43c905 100644 --- a/config/parser.go +++ b/config/parser.go @@ -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), ) }