summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-21 17:44:44 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-21 17:44:44 -0400
commit6d01332b5562738270dbad6c60d61c3652a8f988 (patch)
tree5a6143c710998ec040ce4e476a5e775049e955a0
parent4130956b4c3cfb63c36b25fadfc19e8c95fb6536 (diff)
downloadaerc-6d01332b5562738270dbad6c60d61c3652a8f988.tar.gz
Rig up terminal keybinding group
-rw-r--r--config/bindings.go1
-rw-r--r--widgets/aerc.go2
2 files changed, 3 insertions, 0 deletions
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
 	}