From 753adb90692e4821f8caea1d5d86cd69e312efa7 Mon Sep 17 00:00:00 2001 From: Kevin Kuehler Date: Sat, 1 Jun 2019 22:15:04 -0700 Subject: widget: Add ProvidesMessage interface Consists of 3 functions * Store: Access to MessageStore type * SelectedAccount: Access to Account widget that the target widget belongs to * SelectedMessage: Current message (selected in msglist or the one we are viewing) Signed-off-by: Kevin Kuehler --- aerc.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'aerc.go') diff --git a/aerc.go b/aerc.go index 22df069..ffce931 100644 --- a/aerc.go +++ b/aerc.go @@ -13,6 +13,7 @@ import ( "git.sr.ht/~sircmpwn/aerc/commands" "git.sr.ht/~sircmpwn/aerc/commands/account" "git.sr.ht/~sircmpwn/aerc/commands/compose" + "git.sr.ht/~sircmpwn/aerc/commands/msg" "git.sr.ht/~sircmpwn/aerc/commands/msgview" "git.sr.ht/~sircmpwn/aerc/commands/terminal" "git.sr.ht/~sircmpwn/aerc/config" @@ -25,6 +26,7 @@ func getCommands(selected libui.Drawable) []*commands.Commands { case *widgets.AccountView: return []*commands.Commands{ account.AccountCommands, + msg.MessageCommands, commands.GlobalCommands, } case *widgets.Composer: @@ -35,6 +37,7 @@ func getCommands(selected libui.Drawable) []*commands.Commands { case *widgets.MessageViewer: return []*commands.Commands{ msgview.MessageViewCommands, + msg.MessageCommands, commands.GlobalCommands, } case *widgets.Terminal: -- cgit v1.2.3