From 2a3f37fea5d1ea2341ad45e1df301c15c7173b6d Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Fri, 23 Feb 2024 01:30:47 +0000 Subject: filters: add filter examples We can use this as a place to share various filters. Signed-off-by: Tristan Partin Acked-by: Robin Jarry --- configurations/filters.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 configurations/filters.md diff --git a/configurations/filters.md b/configurations/filters.md new file mode 100644 index 00000000..8c5d65e3 --- /dev/null +++ b/configurations/filters.md @@ -0,0 +1,36 @@ +--- +title: "aerc-wiki: Configurations/Filters" +--- + +# Filter examples by MIME type + +## `application/gzip` + +- `tar -z --list` + +## `application/pgp-keys` + +- `gpg` + +## `image/gif` + +- `catimg -w "$(tput cols)" -` + +## `image/jpeg` + +- `catimg -w "$(tput cols)" -` + +## `image/gif` + +- `catimg -w "$(tput cols)" -` + +## `text/html` + +- `lynx -assume_charset=UTF-8 -display_charset=UTF-8 -localhost -stdin -dump | colorize` + +## `text/markdown` + +- `glow --style dark --width "$(tput cols)"` + + Note that without applying a `--style` argument, you may not get colored + output. -- cgit v1.2.3-54-g00ecf