o View OpenDoc with odt2txt
odt2txt %f | ${PAGER:-more}
++ t r & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
+e Edit OpenDoc with libreoffice
+ libreoffice %f &
+
+= t r & f \.(pdf|PDF|djvu)(\.bz2|\.gz)?$
e View pdf/djvu with evince
evince %f &
d View doc with catdoc
catdoc %f | ${PAGER:-more}
++ t r & f \.(doc|DOC|rtf)$
+e Edit doc with libreoffice
+ libreoffice %f &
+
+= t r & f \.(docx|DOCX)$
d View docx with docx2txt
docx2txt %f - | ${PAGER:-more}