From 10dd23f05d271a27ad40a6fafffb5fe2c3e5fe57 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Mar 2019 16:32:22 -0400 Subject: Add terminal command context --- aerc.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'aerc.go') diff --git a/aerc.go b/aerc.go index d086f85..c2bc69c 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} -- cgit 1.4.1-2-gfad0