aboutsummaryrefslogtreecommitdiffstats
path: root/doc/aerc-config.5.scd
diff options
context:
space:
mode:
authorJens Grassel <jens@wegtam.com>2022-11-29 16:13:05 +0100
committerRobin Jarry <robin@jarry.cc>2022-11-30 16:17:10 +0100
commit118ece70af51a677f1504ec1ca13e47d0db5fc67 (patch)
treeb7bce23389411ee38e0db5965d7f1dabc2219cfc /doc/aerc-config.5.scd
parent169a967111c70d7f413ec15be715d9c513c29878 (diff)
downloadaerc-118ece70af51a677f1504ec1ca13e47d0db5fc67.tar.gz
colorize: add solarized theme
This modifies the colorize script to accept a command line parameter to change the colour theme. Currently only a solarized version is added. Due to the nature of awk the theme has to be defined via the `-v` flag. Due to the `switch` statement only being available in GNU awk we use a `if else` statement to ensure that the default colours are used if either the `THEME` variable is not set at all or set to `default`. Solarized colour scheme: https://ethanschoonover.com/solarized/ Signed-off-by: Jens Grassel <jens@wegtam.com> Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc/aerc-config.5.scd')
-rw-r--r--doc/aerc-config.5.scd6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
index cd78abbe..247490ab 100644
--- a/doc/aerc-config.5.scd
+++ b/doc/aerc-config.5.scd
@@ -624,6 +624,12 @@ _text/plain_
text/plain=colorize
```
+ The built-in _colorize_ filter supports alternative themes:
+
+ ```
+ text/plain=colorize -v theme=solarized
+ ```
+
Wrap long lines at 100 characters, while not messing up nested quotes.
Not perfect, but works for most emails: