diff options
| author | Philip Wittamore <philip@wittamore.com> | 2026-05-03 12:35:28 +0200 |
|---|---|---|
| committer | Philip Wittamore <philip@wittamore.com> | 2026-05-03 12:35:28 +0200 |
| commit | fc25af426d106dec38e6681996e7eae592374975 (patch) | |
| tree | dbeada7cad50b51c961f2446fb1efced9999cb81 /auto.mailcap | |
Diffstat (limited to 'auto.mailcap')
| -rwxr-xr-x | auto.mailcap | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/auto.mailcap b/auto.mailcap new file mode 100755 index 0000000..f168e10 --- /dev/null +++ b/auto.mailcap @@ -0,0 +1,12 @@ +text/markdown; md2html --fcollapse-whitespace --flatex-math --fpermissive-email-autolinks --fstrikethrough --ftables --ftasklists --funderline --fwiki-links;x-htmloutput +#text/markdown; pandoc - -f markdown -t html -o -; x-htmloutput +text/javascript; bat -f -l es6 --file-name "${MAILCAP_URL:-STDIN}" -;x-ansioutput +audio/*; mpv - 2>/dev/null +video/*; mpv - 2>/dev/null +image/*; nsxiv --geometry=1068x600 %s +application/pdf; qpdfview '%s' +application/zip; exec cat;x-saveoutput +application/gzip; exec cat;x-saveoutput +application/toml; exec cat;copiousoutput +application/vnd.oasis.opendocument.text;pandoc --from odt --to markdown %s;copiousoutput +application/*;cp %s /tmp \; xdg-open /tmp/$(basename %s) > /dev/null 2>&1 |
