aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/aerc.go6
-rw-r--r--doc/aerc-binds.5.scd1
2 files changed, 5 insertions, 2 deletions
diff --git a/app/aerc.go b/app/aerc.go
index 3f2c9b32..b6bc2430 100644
--- a/app/aerc.go
+++ b/app/aerc.go
@@ -265,14 +265,16 @@ func (aerc *Aerc) getBindings() *config.KeyBindings {
}
return binds.ForFolder(view.SelectedDirectory())
case *MessageViewer:
+ var binds *config.KeyBindings
switch view.Bindings() {
case "view::passthrough":
- return config.Binds.MessageViewPassthrough.ForAccount(
+ binds = config.Binds.MessageViewPassthrough.ForAccount(
selectedAccountName)
default:
- return config.Binds.MessageView.ForAccount(
+ binds = config.Binds.MessageView.ForAccount(
selectedAccountName)
}
+ return binds.ForFolder(view.SelectedAccount().SelectedDirectory())
case *Terminal:
return config.Binds.Terminal
default:
diff --git a/doc/aerc-binds.5.scd b/doc/aerc-binds.5.scd
index de8f436c..4dbc6c61 100644
--- a/doc/aerc-binds.5.scd
+++ b/doc/aerc-binds.5.scd
@@ -72,6 +72,7 @@ You may also configure account specific key bindings for each context:
Folder and context-specific bindings can be configured for message lists:
*[messages:folder=*_FolderName_*]*++
+*[view:folder=*_FolderName_*]*++
*[compose:folder=*_FolderName_*]*++
*[compose::editor:folder=*_FolderName_*]*++
*[compose::review:folder=*_FolderName_*]*