From: Oleg Broytman Date: Wed, 12 Nov 2014 12:17:15 +0000 (+0300) Subject: .mailcap: view OpenDocument files with odt2txt, edit with libreoffice X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2e9445458dc40f2b0e302d3d7e8db295ae7b7505;p=dotfiles.git .mailcap: view OpenDocument files with odt2txt, edit with libreoffice --- diff --git a/.mailcap b/.mailcap index a3e553f..462200b 100644 --- a/.mailcap +++ b/.mailcap @@ -15,6 +15,9 @@ application/postscript; xpdf %s; description="Postscript files"; test=test -n "$ application/postscript; gv %s; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`which gv 2>/dev/null`" application/postscript; ghostview %s; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`which ghostview 2>/dev/null`" application/postscript; pstotext %s; copiousoutput; description="PostScript files"; test=test -n "`which pstotext 2>/dev/null`" +application/vnd.oasis.opendocument.text; odt2txt %s | less; edit=libreoffice %s; needsterminal; description="OpenDocument files"; test=test -n "`which odt2txt 2>/dev/null`" -a -n "`which less 2>/dev/null`" +application/vnd.oasis.opendocument.text; odt2txt %s | more; edit=libreoffice %s; needsterminal; description="OpenDocument files"; test=test -n "`which odt2txt 2>/dev/null`" +application/vnd.oasis.opendocument.text; odt2txt %s; copiousoutput; description="OpenDocument files"; test=test -n "`which odt2txt 2>/dev/null`" application/x-bittorrent; bittorrent.py %s; test=test -n "$DISPLAY" -a -n "`which bittorrent.py 2>/dev/null`" application/x-chm; fbreader %s; description="Compiled HTML files"; test=test -n "$DISPLAY" -a -n "`which fbreader 2>/dev/null`" application/x-dvi; xdvi %s; description="DVI files"; test=test -n "$DISPLAY" -a -n "`which xdvi 2>/dev/null`"