aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.go b/main.go
index 75069e13..f5194b6b 100644
--- a/main.go
+++ b/main.go
@@ -22,6 +22,7 @@ import (
"git.sr.ht/~rjarry/aerc/commands/compose"
"git.sr.ht/~rjarry/aerc/commands/msg"
"git.sr.ht/~rjarry/aerc/commands/msgview"
+ "git.sr.ht/~rjarry/aerc/commands/patch"
"git.sr.ht/~rjarry/aerc/commands/terminal"
"git.sr.ht/~rjarry/aerc/config"
"git.sr.ht/~rjarry/aerc/lib/crypto"
@@ -41,25 +42,32 @@ func getCommands(selected ui.Drawable) []*commands.Commands {
account.AccountCommands,
msg.MessageCommands,
commands.GlobalCommands,
+ patch.PatchCommands,
}
case *app.Composer:
return []*commands.Commands{
compose.ComposeCommands,
commands.GlobalCommands,
+ patch.PatchCommands,
}
case *app.MessageViewer:
return []*commands.Commands{
msgview.MessageViewCommands,
msg.MessageCommands,
commands.GlobalCommands,
+ patch.PatchCommands,
}
case *app.Terminal:
return []*commands.Commands{
terminal.TerminalCommands,
commands.GlobalCommands,
+ patch.PatchCommands,
}
default:
- return []*commands.Commands{commands.GlobalCommands}
+ return []*commands.Commands{
+ commands.GlobalCommands,
+ patch.PatchCommands,
+ }
}
}