# My Midnight Commander menu file
#
# Text version here
#
# Generated by gvim :runtime syntax/2html.vim
#
shell_patterns=0

# This is necessary to overcome a bug in mc - without this
# mc makes default wrong item
+ t r & f \.zip$
N  NOOP
   :

+ t d & f (video_ts|VIDEO_TS)$
N  NOOP
   :

=+ t r & f \.fb2(\.bz2|\.gz|\.zip)?$ | f \.(txt|htm(l?)|rtf|chm)$
f  FBReader
   fbreader %f &

+ t r & f \.fb2$
H  fb2html
   xsltproc /usr/local/src/FictionBook/FB2_2_html_ru.xsl %f | webstdin -t

+ t r & f \.fb2(\.bz2|\.gz|\.zip)$
H  fb2html (extract from archive)
   case %f in
     *.fb2.bz2) A="bunzip2 -c" ;;
     *.fb2.gz) A="gunzip -c" ;;
     *.fb2.zip) A="unzip -p" ;;
   esac
   $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_html_ru.xsl - | webstdin -t

+ t r & f \.fb2$
T  fb2txt
   xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl %f | webstdin -e txt -t

+ t r & f \.fb2(\.bz2|\.gz|\.zip)$
T  fb2txt (extract from archive)
   case %f in
     *.fb2.bz2) A="bunzip2 -c" ;;
     *.fb2.gz) A="gunzip -c" ;;
     *.fb2.zip) A="unzip -p" ;;
   esac
   $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t

=+ t r & f \.(pdf|djvu)$
e  evince
   evince %f &

=+ t r & f \.(doc|DOC)$
e  catdoc
   catdoc %f | less

=+ t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG)$ | t t
i  View image(s) scaled
   xli -zoom auto %s &

+ t r & f \.(bmp|BMP|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG)$ | t t
I  View image(s) full size
   xli %s &

+ t r & f \.(mp3|MP3|m3u|flac|ape)$ | t t
a  Add the audiofile(s) or playlist(s)
   for f in %s; do
      audtool --playlist-addurl "$f"
   done

=+ t r & f \.(mp3|MP3|m3u|flac|ape)$ | t t
p  Load the audiofile(s) or playlist(s)
   audtool --playlist-clear
   for f in %s; do
      audtool --playlist-addurl "$f"
   done

+ t r & f \.(mp3|MP3|m3u|flac|ape)$ | t t
P  Play the audiofile(s) or playlist(s)
   audtool --playlist-clear
   for f in %s; do
      audtool --playlist-addurl "$f"
   done
   audtool --playback-play
   #mplayer -playlist %f

=+ t r & f \.(avi|AVI|mkv|MKV|mp4|MP4|mpg|MPG|vob|VOB|flv)$ | t t
v  Play video
   mplayer %s

+ t r & f \.(avi|AVI|mkv|MKV|mp4|MP4|mpg|MPG|vob|VOB|flv)$ | t t
V  Play video GUI
   gmplayer %s

+ t r & f \.(avi|AVI|mkv|MKV|mp4|MP4|mpg|MPG|vob|VOB|flv)$ | t t
i  Video info
   mplayer -msglevel identify=6 -frames 0 %f

=+ t d & f (video_ts|VIDEO_TS)$
d  Play DVD image
   mplayer -dvd-device %f dvd://

+ t d & f (video_ts|VIDEO_TS)$
D  Play DVD image GUI
   gmplayer -dvd-device %f dvd://

=+ t d & f (video_ts|VIDEO_TS)$
t  Play DVD title
   title=%{Enter title}
   mplayer -dvd-device %f dvd://"$title"

+ t d & f (video_ts|VIDEO_TS)$
T  Play DVD title GUI
   title=%{Enter title}
   gmplayer -dvd-device %f dvd://"$title"

+ t d & f (video_ts|VIDEO_TS)$
i  DVD info
   mplayer -dvd-device %f dvd:// -msglevel identify=6 -frames 0

+ t d & f ^\.\.$
b  Make a .tar.bz2 release of the current directory
   Pwd="`basename %d /`"
   echo -n "Name of the distribution file (without extension) [$Pwd]: "
   read tar
   if [ "$tar"x = x ]; then tar="$Pwd"; fi
   cd .. && tar cvf - "$Pwd" | bzip2 -f9 > "$tar".tar.bz2
   echo ../"$tar".tar.bz2 created.

+ t d & f ^\.\.$
g  Make a .tar.gz release of the current directory
   Pwd="`basename %d /`"
   echo -n "Name of the distribution file (without extension) [$Pwd]: "
   read tar
   if [ "$tar"x = x ]; then tar="$Pwd"; fi
   cd .. && tar cvf - "$Pwd" | gzip -f9 > "$tar".tar.gz
   echo ../"$tar".tar.gz created.

+ t d & f ^\.\.$
t  Make a .tar release of the current directory
   Pwd="`basename %d /`"
   echo -n "Name of the distribution file (without extension) [$Pwd]: "
   read tar
   if [ "$tar"x = x ]; then tar="$Pwd"; fi
   cd .. && tar cvf - "$Pwd" > "$tar".tar
   echo ../"$tar".tar created.

+ t d & f ^\.\.$
z  Make a .zip release of the current directory
   Pwd="`basename %d /`"
   echo -n "Name of the distribution file (without extension) [$Pwd]: "
   read zip
   if [ "$zip"x = x ]; then zip="$Pwd"; fi
   cd .. && zip -r9 "$zip".zip "$Pwd"
   echo ../"$zip".zip created.

+ t d & f ^\.\.$
y  Make a .zip release of the current directory with recoded filenames
   Pwd="`basename %d /`"
   echo -n "Name of the distribution file (without extension) [$Pwd]: "
   read zip
   if [ "$zip"x = x ]; then zip="$Pwd"; fi
   cd .. && zip.py "$zip".zip "$Pwd"
   echo ../"$zip".zip created.

+ ! f \.(\.|zip|ZIP)$
z  zip the file/directory
   zip -r9 %f.zip %f

+ ! f \.(\.|zip|ZIP)$
y  zip the file/directory with recoded filename(s)
   zip.py %f.zip %f

+ t t
Z  zip these files/directories
   ZIP=%{Enter zip name}
   zip -r9 "$ZIP" %s

+ t t
Y  zip these files/directories with recoded filenames
   ZIP=%{Enter zip name}
   zip.py "$ZIP" %s

=+ t r & f \.tar\.bz2$
u  Extract from tar-bzip2
   bzip2 -cd %f | tar xvf -

=+ t r & f \.tar\.gz$ | f \.tgz$
u  Extract from tar-gzip
   gzip -cd %f | tar xvf -

=+ t r & f \.tar$
u  Extract from tar
   tar xvf %f

=+ t r & f \.(zip|ZIP)$
u  Extract from zip
   unzip %f

=+ t r & f \.(zip|ZIP)$
y  Extract from zip with recoded filenames
   unzip.py %f

=+ t r & f \.7z$
u  Extract from 7zip
   7zr x %f

=+ t r & f \.(rar|RAR)$
u  Extract from rar
   unrar x -y %f

=+ T r & F \.tar\.bz2$
U  Extract from the other tar-bzip2
   bzip2 -cd %D/%F | tar xvf -

=+ T r & F \.tar\.gz$ | F \.tgz$
U  Extract from the other tar-gzip
   gzip -cd %D/%F | tar xvf -

=+ T r & F \.tar$
U  Extract from the other tar
   tar xvf %D/%F

=+ T r & F \.(zip|ZIP)$
U  Extract from the other zip
   unzip %D/%F

=+ T r & F \.(zip|ZIP)$
Y  Extract from the other zip with recoded filenames
   unzip.py %D/%F

=+ T r & F \.(rar|RAR)$
U  Extract from the other rar
   unrar x -y %D/%F

=+ T r & F \.7z$
U  Extract from 7zip
   7zr x %f

+ t r & f \.tar\.bz2$ | f \.tar\.gz$ | f \.tgz$ | f \.(zip|ZIP)$ | f \.(rar|RAR)$ | f \.7z$
n  Create a directory for this archive
   case %f in
     *.tar.bz2) D="`basename %f .tar.bz2`";;
     *.tar.gz) D="`basename %f .tar.gz`";;
     *.tgz)    D="`basename %f .tgz`";;
     *.zip)    D="`basename %f .zip`";;
     *.ZIP)    D="`basename %f .ZIP`";;
     *.rar)    D="`basename %f .rar`";;
     *.RAR)    D="`basename %f .RAR`";;
     *.7z)     D="`basename %f .7z`";;
   esac
   mkdir "$D"

+ t r
b  View the file in a browser
   webbrowser file://%d/%f

+ t r
w  View the file in a new browser window
   webbrowser -n file://%d/%f

+ t r
t  View the file in a new browser tab
   webbrowser -t file://%d/%f

@  Do something on the current file
   CMD=%{Enter command}
   $CMD %f

+ t t
@  Do something on all the file(s) at once
   CMD=%{Enter command}
   $CMD %s

+ t t
@  Do something on the tagged files one by one
   CMD=%{Enter command}
   for f in %t; do
     $CMD "$f"
   done

=+ t r & f \.[1-8]$ | f \.man$
1  Display the file with roff -man
   %view nroff -man %f

m  View manual page
   MAN=%{Enter manual name}
   %view man -P cat $MAN

+ t r
c  Compare the file
   cmp %D/%f %f

+ t r & T r
C  Compare these files
   cmp %D/%F %f

+ t r
d  Diff the file
   diff --speed-large-files %D/%f %f

+ t r & T r
D  Diff these files
   diff --speed-large-files %D/%F %f

+ t r
v  vimdiff the file
   vim -d %D/%f %f

+ t r & T r
V  vimdiff these files
   vim -d %D/%F %f

+ t d & ! f ^\.\.$
d  Diff the directory
   diff -r --speed-large-files %D/%f %f

+ t d & T d & ! F ^\.\.$
D  Diff these directories
   diff -r --speed-large-files %D/%F %f

This is the page http://phd.pp.ru/Software/dotfiles/mc/menu.html. It was generated on Thu, 29 Jul 2010 12:41:12 GMT from CheetahTemplate menu.tmpl. Some rights are reserved. Read more about technical aspects of the site.