~tardypad/dotfiles

ref: 7dd5e02494e2821ff6b4fd5758a590ef03b5403b dotfiles/packages/neomutt/config.d/mailcap -rw-r--r-- 637 bytes
7dd5e024 — Damien Tardy-Panis add mako package config 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# open plain text in less pager
text/plain; less '%s'; needsterminal

# open external browser to view html attachments
# qutebrowser needs .html extension to display the file (Qt limitation)
text/html; mv %s %s.html && xdg-open %s.html; test=test -n "$DISPLAY"; needsterminal
# use elinks to display html in pager
text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput

# use default GUI application to view other type of attachments
image/*; xdg-open %s; test=test -n "$DISPLAY";
audio/*; xdg-open %s; test=test -n "$DISPLAY";
video/*; xdg-open %s; test=test -n "$DISPLAY";
application/*; xdg-open %s; test=test -n "$DISPLAY";