X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.mc%2Fmenu;h=8f2acbe6d225b63b49c618a359cee8211ada91a6;hb=b21d57e9dcf5334ae082213f0c423a30f16f8b3f;hp=d33756212cd99869d11dd288889378b8d866c745;hpb=4cb17a2a1e2af89e1d1c2a3150ee5e091fcee06c;p=dotfiles.git diff --git a/.mc/menu b/.mc/menu index d337562..8f2acbe 100644 --- a/.mc/menu +++ b/.mc/menu @@ -61,8 +61,12 @@ T fb2txt esac $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t ++ t lr & f \.(pdf|PDF)$ +v View pdf + pdftotext -layout -q %f - | iconv.py -f utf-8 | ${PAGER:-more} + += t lr & f \.(pdf|PDF)$ -e View pdf +e View pdf with evince evince %f & += t lr & f \.djvu(\.bz2|\.gz)?$ @@ -90,6 +94,9 @@ o View OpenDoc with odt2txt d View docx with docx2txt docx2txt %f - | iconv.py -f utf-8 | ${PAGER:-more} ++= t lr & f \.(xls|XLS|xlsx|XLSX)$ +o View OpenXlsx with xlsx2csv + xlsx2csv %f | iconv.py -f utf-8 | ${PAGER:-more} += t lr & f \.(xls|XLS)$ x View xls with xls2csv