753adb9069
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 <keur@ocf.berkeley.edu>
16 lines
276 B
Go
16 lines
276 B
Go
package msg
|
|
|
|
import (
|
|
"git.sr.ht/~sircmpwn/aerc/commands"
|
|
)
|
|
|
|
var (
|
|
MessageCommands *commands.Commands
|
|
)
|
|
|
|
func register(name string, cmd commands.AercCommand) {
|
|
if MessageCommands == nil {
|
|
MessageCommands = commands.NewCommands()
|
|
}
|
|
MessageCommands.Register(name, cmd)
|
|
}
|