diff options
author | Robin Jarry <robin@jarry.cc> | 2023-02-06 14:38:48 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-02-20 14:48:42 +0100 |
commit | d74400ac07a9f149e89fdf2b7232ffc6871f8553 (patch) | |
tree | 85b89c4a19d178ba755a1396159f087ea540922d /doc/aerc-templates.7.scd | |
parent | d2e74cdb91e140b50d14c3a8b315cde272f32587 (diff) | |
download | aerc-d74400ac07a9f149e89fdf2b7232ffc6871f8553.tar.gz |
templates: add compactDir function
This will be used in the dirtree-format replacement by templates.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'doc/aerc-templates.7.scd')
-rw-r--r-- | doc/aerc-templates.7.scd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd index 8e1bcf1b..91745e8c 100644 --- a/doc/aerc-templates.7.scd +++ b/doc/aerc-templates.7.scd @@ -352,6 +352,15 @@ aerc provides the following additional functions: {{cwd}} ``` +*compactDir* + Reduce a directory path into a compact form. The directory name will be + split with _/_ and each part will be reduced to the first letter in its + name: _INBOX/01_WORK/PROJECT_ will become _I/W/PROJECT_. + + ``` + {{compactPath .Folder}} + ``` + *version* Returns the version of aerc, which can be useful for things like X-Mailer. |