]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/menu
mc.menu: change titles
[dotfiles.git] / .mc / menu
index 94e812d9a322c12118f3355a33628e324b96668f..ffabda40e6a2b8d8e8b3e9d5f7e29f060aa91456 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -17,7 +17,7 @@ shell_patterns=0
    done
 
 + t r
-p  View the file in the pager
+p  View the file in a pager
    exec ${PAGER:-more} %f
 
 + t r
@@ -34,7 +34,7 @@ t  View the file in a new browser tab
    exec webbrowser -t file://%d/%f
 
 += f \.fb2(\.bz2|\.gz|\.zip)?$ | f \.(chm|epub|htm(l?)|txt|rtf)$ & t r
-f  FBReader
+f  View fb2/chm/epub with fbreader
    fbreader %f &
 
 + t r & f \.fb2(\.bz2|\.gz|\.zip)$
@@ -57,28 +57,44 @@ T  fb2txt
    esac
    $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t
 
-+= t r & f \.(pdf|PDF|djvu)(\.bz2|\.gz)?$
-e  evince
++= t r & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
+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|ps|PS|djvu)(\.bz2|\.gz)?$
+e  View pdf/ps/djvu with evince
    evince %f &
 
 += t r & f \.(doc|DOC|rtf)$
-d  catdoc
+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  docx2txt
-   docx2txt %f - | ${PAGER:-more}
+d  View docx with docx2txt
+   docx2txt %f - | iconv.py -f utf-8 | ${PAGER:-more}
+
++ t r & f \.(docx|DOCX)$
+e  Edit docx with libreoffice
+   libreoffice %f &
 
 += t r & f \.(xls|XLS)$
-x  xls2csv
+x  View xls with xls2csv
    xls2csv %f | ${PAGER:-more}
 
-+ t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
-= t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$
++ t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ | t t
+= t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$
 i  View image(s) scaled
    xli -title "`echo %s | sed 's/ /_/g'`" -zoom auto %s &
 
-+ t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|xpm)$ | t t
++ t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|pbm|PBM|ppm|PPM|png|PNG|xbm|xpm)$ | t t
 I  View image(s) full size
    xli -title "`echo %s | sed 's/ /_/g'`" %s &
 
@@ -187,7 +203,7 @@ P  Play directory with gmplayer
    gmplayer %f/* &
 
 + t d & f ^\.\.$
-b  Make a .tar.bz2 release of the current directory
+b  Compress the current subdirectory to tar.bz2
    Pwd="`basename %d /`"
    echo -n "Name of the distribution file (without extension) [$Pwd]: "
    read tar
@@ -196,7 +212,7 @@ b  Make a .tar.bz2 release of the current directory
    echo ../"$tar".tar.bz2 created.
 
 + t d & f ^\.\.$
-g  Make a .tar.gz release of the current directory
+g  Compress the current subdirectory to tar.gz
    Pwd="`basename %d /`"
    echo -n "Name of the distribution file (without extension) [$Pwd]: "
    read tar
@@ -205,7 +221,7 @@ g  Make a .tar.gz release of the current directory
    echo ../"$tar".tar.gz created.
 
 + t d & f ^\.\.$
-t  Make a .tar release of the current directory
+t  Compress the current subdirectory to tar
    Pwd="`basename %d /`"
    echo -n "Name of the distribution file (without extension) [$Pwd]: "
    read tar
@@ -214,7 +230,7 @@ t  Make a .tar release of the current directory
    echo ../"$tar".tar created.
 
 + t d & f ^\.\.$
-z  Make a .zip release of the current directory
+z  Compress the current subdirectory to zip
    Pwd="`basename %d /`"
    echo -n "Name of the distribution file (without extension) [$Pwd]: "
    read zip
@@ -223,7 +239,7 @@ z  Make a .zip release of the current directory
    echo ../"$zip".zip created.
 
 + t d & f ^\.\.$
-y  Make a .zip release of the current directory with recoded filenames
+y  Compress the current subdirectory to zip with recoded filenames
    Pwd="`basename %d /`"
    echo -n "Name of the distribution file (without extension) [$Pwd]: "
    read zip