X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.mc%2Fmenu;h=7acb98247c8fda0a5ae6488466c13e6b8ddaad0b;hb=ac5097db0a42a03653e905e89d0df0991e0d1b28;hp=0ddd9ba47f0afe8e8e841ddb0ceec044973e77f9;hpb=936ad4d6fc0311864fd1da2d8aaf572b495867e5;p=dotfiles.git diff --git a/.mc/menu b/.mc/menu index 0ddd9ba..7acb982 100644 --- a/.mc/menu +++ b/.mc/menu @@ -29,11 +29,11 @@ b View the file in a browser exec webbrowser file://%d/%f + t r += f \.(htm(l?)|txt)$ w View the file in a new browser window exec webbrowser -n file://%d/%f + t r -= f \.(htm(l?)|txt)$ t View the file in a new browser tab exec webbrowser -t file://%d/%f @@ -85,6 +85,11 @@ d View doc with catdoc d View docx with docx2txt docx2txt %f - | iconv.py -f utf-8 | ${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|doc|DOC|rtf|docx|DOCX|xls|XLS|xlsx|XLSX)$ +v View (Open)Docs with libreoffice + #libreoffice --headless --convert-to "txt:Text (encoded):UTF8" %f + libreoffice --cat %f | ${PAGER:-more} + += t r & f \.(xls|XLS)$ x View xls with xls2csv xls2csv %f | ${PAGER:-more} @@ -500,7 +505,7 @@ D Diff these directories exec diff -ru --speed-large-files \ -x CVS -x .git -x .hg -x .svn -x '*.py[co]' -x __pycache__ %D/%F %f -+= f \.(asc|sig(n)?)$ & t r ++= f \.(asc|gpg|sig(n)?)$ & t r v Verify signature exec gpg --verify %f