aboutsummaryrefslogtreecommitdiffstats
path: root/aerc.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-21 16:32:22 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-21 16:32:22 -0400
commit10dd23f05d271a27ad40a6fafffb5fe2c3e5fe57 (patch)
treea2fe85d9e0de5a972bfa7705558e7d50e95445c3 /aerc.go
parent8126d82956636a2525263e2d0d985d721fdb8074 (diff)
downloadaerc-10dd23f05d271a27ad40a6fafffb5fe2c3e5fe57.tar.gz
Add terminal command context
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/aerc.go b/aerc.go
index d086f858..c2bc69c3 100644
--- a/aerc.go
+++ b/aerc.go
@@ -12,6 +12,7 @@ import (
"git.sr.ht/~sircmpwn/aerc2/config"
"git.sr.ht/~sircmpwn/aerc2/commands"
"git.sr.ht/~sircmpwn/aerc2/commands/account"
+ "git.sr.ht/~sircmpwn/aerc2/commands/terminal"
libui "git.sr.ht/~sircmpwn/aerc2/lib/ui"
"git.sr.ht/~sircmpwn/aerc2/widgets"
)
@@ -20,8 +21,13 @@ func getCommands(selected libui.Drawable) []*commands.Commands {
switch selected.(type) {
case *widgets.AccountView:
return []*commands.Commands{
- commands.GlobalCommands,
account.AccountCommands,
+ commands.GlobalCommands,
+ }
+ case *widgets.TermHost:
+ return []*commands.Commands{
+ terminal.TerminalCommands,
+ commands.GlobalCommands,
}
default:
return []*commands.Commands{commands.GlobalCommands}