From 6939f83ba670cfd69196f6c9434d6188c0a0af4a Mon Sep 17 00:00:00 2001 From: inwit Date: Fri, 26 May 2023 09:01:06 +0200 Subject: doc: mention regex for the bindings definition Document the possibility of using regex when defining bindings for specific accounts or folders. Signed-off-by: inwit Acked-by: Moritz Poldrack --- doc/aerc-binds.5.scd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/aerc-binds.5.scd b/doc/aerc-binds.5.scd index c6ce1827..ee92d760 100644 --- a/doc/aerc-binds.5.scd +++ b/doc/aerc-binds.5.scd @@ -68,7 +68,13 @@ Folder-specific bindings can be configured for message lists: _FolderName_. Keybindings from a folder specifier will take precedence over account specifiers -Example: +You can use regex to match account or folder names: + +*[context:folder~*_Regex_*]* + Add folder specific bindings for folders whose names match the regular + expression. + +Examples: ``` [messages:account=Mailbox] @@ -78,6 +84,9 @@ c = :cf path:mailbox/** and [messages:folder=Drafts] = :recall + +[messages:folder~Archive/\d+/.*] +gi = :cf Inbox ... ``` -- cgit