diff options
author | Tristan Partin <tristan@partin.io> | 2024-02-23 01:30:47 +0000 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-03-10 19:21:55 +0100 |
commit | 2a3f37fea5d1ea2341ad45e1df301c15c7173b6d (patch) | |
tree | 799e39ca6bd8a6f8c868cbb8baa02d8362783618 | |
parent | e3bd0771b2286952b38bac9bc5786be708d9f253 (diff) | |
download | aerc-2a3f37fea5d1ea2341ad45e1df301c15c7173b6d.tar.gz aerc-2a3f37fea5d1ea2341ad45e1df301c15c7173b6d.zip |
filters: add filter examples
We can use this as a place to share various filters.
Signed-off-by: Tristan Partin <tristan@partin.io>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | configurations/filters.md | 36 |
1 files changed, 36 insertions, 0 deletions
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. |