]> git.phdru.name Git - dotfiles.git/commitdiff
View .docx (OOXML) files using docx2txt
authorOleg Broytman <phd@phdru.name>
Thu, 23 Jan 2014 18:57:48 +0000 (22:57 +0400)
committerOleg Broytman <phd@phdru.name>
Thu, 23 Jan 2014 18:57:48 +0000 (22:57 +0400)
.mailcap
.mc/menu
.mime.types

index 53fffe076d08330958366962f51e1cf8bec86471..2fe73fd52a639607c9457aad55114c634eecce7e 100644 (file)
--- a/.mailcap
+++ b/.mailcap
@@ -28,6 +28,7 @@ application/msword; doc2html2 %s; copiousoutput; description="M$ Word Text"; tes
 application/msword; catdoc %s; copiousoutput; description="M$ Word Text"; test=test -n "`which catdoc 2>/dev/null`"
 application/msword; wordview %s; description="M$ Word Text"; test=test -n "$DISPLAY" -a -n "`which wordview 2>/dev/null`"
 application/vnd.ms-excel; xls2csv %s; copiousoutput; description="M$ Excel files"; test=test -n "`which xls2csv 2>/dev/null`"
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s -; copiousoutput; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`"
 
 audio/mpeg; smplayer %s; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`which smplayer 2>/dev/null`"
 audio/mpeg; mplayer %s; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`which mplayer 2>/dev/null`"
index 8d64ee5f66cbc0776260de20f203b523091a0dfa..2a1f44729744c8145473bea2dd0e45a93bbe13d1 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -65,6 +65,10 @@ e  evince
 d  catdoc
    catdoc %f | less
 
++= t r & f \.(docx|DOCX)$
+d  docx2txt
+   docx2txt %f - | less
+
 += t r & f \.(xls|XLS)$
 x  xls2csv
    xls2csv %f | less
index bf282009f1a25936181d618c1a39ccd3852eba58..df30525820368fce8dd9d80bcc31d030b9a62fca 100644 (file)
@@ -90,6 +90,7 @@ application/vnd.oasis.opendocument.text                  odt
 application/vnd.oasis.opendocument.text-master           odm
 application/vnd.oasis.opendocument.text-template         ott
 application/vnd.oasis.opendocument.text-web              oth
+application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
 application/vnd.palm
 application/vnd.powerbuilder6                            pbd
 application/vnd.powerbuilder6-s