From 6d01332b5562738270dbad6c60d61c3652a8f988 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Mar 2019 17:44:44 -0400 Subject: [PATCH] Rig up terminal keybinding group --- config/bindings.go | 1 + widgets/aerc.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config/bindings.go b/config/bindings.go index 0032d72..4cb4805 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -154,6 +154,7 @@ func ParseBinding(input, output string) (*Binding, error) { func init() { keyNames = make(map[string]KeyStroke) keyNames["space"] = KeyStroke{tcell.KeyRune, ' '} + keyNames["semicolon"] = KeyStroke{tcell.KeyRune, ';'} keyNames["enter"] = KeyStroke{tcell.KeyEnter, 0} keyNames["up"] = KeyStroke{tcell.KeyUp, 0} keyNames["down"] = KeyStroke{tcell.KeyDown, 0} diff --git a/widgets/aerc.go b/widgets/aerc.go index 17d41a3..157cdd6 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -98,6 +98,8 @@ func (aerc *Aerc) getBindings() *config.KeyBindings { switch aerc.SelectedTab().(type) { case *AccountView: return aerc.conf.Bindings.MessageList + case *TermHost: + return aerc.conf.Bindings.Terminal default: return aerc.conf.Bindings.Global }