diff options
author | Aivars Vaivods <aivars@vaivods.lv> | 2023-02-01 16:13:54 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-02-20 14:48:42 +0100 |
commit | 420a82a356d53e4b600ba54768f7ed21a43cf85e (patch) | |
tree | 86b7ddc08cc0663b167cb678b264995c9e4239de /doc | |
parent | 70f99085d73b3bfc9b3338c52e6df7bebc7651c7 (diff) | |
download | aerc-420a82a356d53e4b600ba54768f7ed21a43cf85e.tar.gz |
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 <aivars@vaivods.lv>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/aerc.1.scd | 9 |
1 files changed, 9 insertions, 0 deletions
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, *<c-x>* 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. |