diff options
author | Vitaly Ovchinnikov <v@ovch.ru> | 2023-10-22 16:17:38 +0000 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-02 11:58:44 +0100 |
commit | 1977d1f1ac4491fe0625c554a4643ecf60b36466 (patch) | |
tree | 5b95314c12bef7bb22400637d35579cf78241817 /doc/aerc-binds.5.scd | |
parent | eadaec1b3c0cc3439f54595d0748e564d4129728 (diff) | |
download | aerc-1977d1f1ac4491fe0625c554a4643ecf60b36466.tar.gz |
binds: remove duplicated and empty bindings
Add keybindings filtering, so if the context binding is defined, the
parent one is removed and is not shown in the list at all.
Also add keybinding removing, so if the context defines an empty
binding, both this and parent one are removed from the list. This way
you can disable and hide specific bindings in contexts.
Changelog-added: Disable parent context bindings by declaring them empty.
Signed-off-by: Vitaly Ovchinnikov <v@ovch.ru>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc/aerc-binds.5.scd')
-rw-r--r-- | doc/aerc-binds.5.scd | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/aerc-binds.5.scd b/doc/aerc-binds.5.scd index 8ce59cf0..f3e44574 100644 --- a/doc/aerc-binds.5.scd +++ b/doc/aerc-binds.5.scd @@ -87,6 +87,19 @@ gi = :cf Inbox<Enter> You may also configure global keybindings by placing them at the beginning of the file, before specifying any context-specific sections. +Parent keybindings can be erased in the context ones by specifying an "empty" +binding: + +``` +[compose::review] +a = :attach<space> +d = :deatch<space> + +[compose::review:account=no-attachments] +a = +d = +``` + # SPECIAL OPTIONS In addition of user defined key sequences, the following special options are |