33 lines
1.5 KiB
Text
33 lines
1.5 KiB
Text
# open html emails in browser (or whatever GUI program is used to render HTML)
|
|
text/html; open %s ; nametemplate=%s.html
|
|
# render html emails inline using magic (uncomment the line below to use lynx instead)
|
|
# text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput
|
|
text/html; neomutt-renderhtml %s; nametemplate=%s.html; copiousoutput;
|
|
text/plain; $EDITOR %s ;
|
|
|
|
# show calendar invites
|
|
text/calendar; mutt-ics; description=ics details; copiousoutput; print=khal import %s; needsterminal
|
|
application/ics; mutt-ics; description=ics details; copiousoutput; print=khal import %s; needsterminal
|
|
|
|
# open images externally
|
|
image/*; imv %s ;
|
|
|
|
# open videos in mpv
|
|
video/*; mpv --autofit-larger=90\%x90\% %s; needsterminal;
|
|
video/*; setsid mpv --quiet %s &; copiousoutput
|
|
|
|
# open spreadsheets in sc-im
|
|
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; sc-im %s; needsterminal
|
|
|
|
# documents
|
|
application/pdf; pdftotext -layout %s -; copiousoutput; print=open %s
|
|
application/msword; pandoc --from docx --to plain %s; copiousoutput
|
|
application/vnd.openxmlformats-officedocument.wordprocessingml.document; pandoc --from odt --to plain %s; copiousoutput
|
|
application/rtf; pandoc --from rtf --to plain %s; copiousoutput
|
|
|
|
|
|
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
|
|
application/pgp-keys; gpg --import '%s'; copiousoutput;
|
|
|
|
# open anything else externally
|
|
application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; open /tmp/mutt/$(basename %s) &
|