summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-10-12 01:02:00 +0200
committerRobin Jarry <robin@jarry.cc>2022-10-16 11:35:24 +0200
commita4b80bcc8b4427016bfb0c2924ffaa9f8b90916d (patch)
treea92649d64a589070a68cd930aa803b64160b8953
parentc95961fc74585b4284441863c2ebc77a31ea7332 (diff)
downloadaerc-a4b80bcc8b4427016bfb0c2924ffaa9f8b90916d.tar.gz
aerc-a4b80bcc8b4427016bfb0c2924ffaa9f8b90916d.zip
config: reference built-in filter scripts
Now that the share/filters folders are in $PATH when running the commands, let's reference the scripts by their name. Add more filter examples, some of them using the built-in filters, some of them not... Suggested-by: Teo Luppi <me@luppi.uk> Suggested-by: Bence Ferdinandy <bence@ferdinandy.com> Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
-rw-r--r--config/aerc.conf14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index dda983a4..66aae825 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -316,11 +316,17 @@ reply-to-self=true
# You can also match on non-mimetypes, by prefixing with the header to match
# against (non-case-sensitive) and a comma, e.g. subject,text will match a
# subject which contains "text". Use header,~regex to match against a regex.
-#subject,~^\[PATCH=colordiff
-text/plain=sed 's/^>\+.*/\x1b[36m&\x1b[0m/'
-#text/html=pandoc -f html -t plain
-#text/html=w3m -dump -I UTF-8 -T text/html
+#
+text/plain=colorize
+text/calendar=calendar
+message/delivery-status=colorize
+message/rfc822=colorize
+#text/html=pandoc -f html -t plain | colorize
+#text/html=html | colorize
+#application/x-sh=bat -fP -l sh
#image/*=catimg -w $(tput cols) -
+#subject,~Git(hub|lab)=lolcat -f
+#from,thatguywhodoesnothardwraphismessages=fmt -w 72 | colorize
[openers]
#