From 420a82a356d53e4b600ba54768f7ed21a43cf85e Mon Sep 17 00:00:00 2001 From: Aivars Vaivods Date: Wed, 1 Feb 2023 16:13:54 +0100 Subject: commands: expand template placeholders Interpret go template constructs in all aerc command arguments based on the currently selected account, folder and message (if any). Signed-off-by: Aivars Vaivods Signed-off-by: Robin Jarry Reviewed-by: Tim Culverhouse --- doc/aerc.1.scd | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/aerc.1.scd') diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index aac014c9..d4376be7 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -54,6 +54,15 @@ as the terminal emulator, ** is used to bring up the command interface. Different commands work in different contexts, depending on the kind of tab you have selected. +Dynamic arguments are expanded following *aerc-templates*(7) depending on the +context. For example, if you have a message selected, the following command: + +``` +:filter -f "{{index (.From | emails) 0}}" +``` + +Will filter all messages sent by the same sender. + Aerc stores a history of commands, which can be cycled through in command mode. Pressing the up key cycles backwards in history, while pressing down cycles forwards. -- cgit