aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/aerc-templates.7.scd14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd
index b5681030..2c773bef 100644
--- a/doc/aerc-templates.7.scd
+++ b/doc/aerc-templates.7.scd
@@ -490,6 +490,20 @@ aerc provides the following additional functions:
{{replace `(.+) - .+ at .+\..+` `$1` ((index .OriginalFrom 0).Name)}}
```
+*head*
+ Return first n characters from string.
+
+ ```
+ {{"hello" | head 2}}
+ ```
+
+*tail*
+ Return last n characters from string.
+
+ ```
+ {{"hello" | tail 2}}
+ ```
+
*.Style*
Apply a user-defined style (see *aerc-stylesets*(7)) to a string.