X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=email%2F.mutt%2Fmailcap;h=e8892f5303f23fa1314fdb6bf22b799301c312ae;hb=ec1f37d52d491d731b8b3463d8704102256a30ca;hp=c0569abd37f12424052ab16db38120290e9e79a1;hpb=081b167a47e0ed34514535fe67501dfd006b3061;p=dotfiles.git diff --git a/email/.mutt/mailcap b/email/.mutt/mailcap index c0569ab..e8892f5 100644 --- a/email/.mutt/mailcap +++ b/email/.mutt/mailcap @@ -1,3 +1,34 @@ -application/msword; libreoffice %s; -application/pdf; gv %s; +# Fork off a process +application/pdf; evince %s; +text/html; firefox -new-tab %s & sleep 5; + +# Open document formats +application/vnd.oasis.opendocument.text; libreoffice '%s'; +application/vnd.oasis.opendocument.text-template; libreoffice '%s'; +application/vnd.oasis.opendocument.text-web; libreoffice '%s'; +application/vnd.oasis.opendocument.text-master; libreoffice '%s'; +application/vnd.oasis.opendocument.graphics; libreoffice '%s'; +application/vnd.oasis.opendocument.graphics-template; libreoffice '%s'; +application/vnd.oasis.opendocument.presentation; libreoffice '%s'; +application/vnd.oasis.opendocument.presentation-template; libreoffice '%s'; +application/vnd.oasis.opendocument.spreadsheet; libreoffice '%s'; +application/vnd.oasis.opendocument.spreadsheet-template; libreoffice '%s'; +application/vnd.oasis.opendocument.chart; libreoffice '%s'; +application/vnd.oasis.opendocument.formula; libreoffice '%s'; +application/vnd.oasis.opendocument.database; libreoffice '%s'; +application/vnd.oasis.opendocument.image; libreoffice '%s'; + +# Microsoft Office formats +application/msword; libreoffice '%s'; +application/vnd.ms-excel; libreoffice '%s'; +application/vnd.ms-powerpoint; libreoffice '%s'; +application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice '%s'; +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice '%s'; +application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice '%s'; + +# All the autoview text/html; w3m -I %{charset} -T text/html; copiousoutput; +application/pdf; pdftotext '%s' -; copiousoutput; +application/msword; libreoffice --headless --cat '%s'; copiousoutput; +application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice --headless --cat '%s'; copiousoutput; +application/vnd.oasis.opendocument.text; libreoffice --headless --cat '%s'; copiousoutput;