aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 6d01332b5562738270dbad6c60d61c3652a8f988
parent 4130956b4c3cfb63c36b25fadfc19e8c95fb6536
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 21 Mar 2019 17:44:44 -0400

Rig up terminal keybinding group

Diffstat:
Mconfig/bindings.go | 1+
Mwidgets/aerc.go | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git 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 @@ -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 }