Reorder and add sections.
--- a/.config/mc/mc.ext Sat Apr 07 11:04:21 2012 +0300
+++ b/.config/mc/mc.ext Sat Apr 07 11:39:44 2012 +0300
@@ -83,34 +83,17 @@
# useful on more than one system. You can post your modifications
# as tickets at www.midnight-commander.org
-
-# .so libraries
-# Exception - .so libraries are not manual pages
-regex/\.(so|so\.[0-9\.]*)$
- View=%view{ascii} file %f && nm -C -D %f
-
-# Object
-type/^ELF
- #Open=%var{PAGER:more} %f
- View=%view{ascii} file %f && nm -C %f
-
-### Documentation ###
-
-# Texinfo
-regex/\.(te?xi|texinfo)$
-
-# GNU Info page
-type/^Info\ text
- Open=info -f %f
-
-shell/.info
- Open=info -f %f
+################################################################
+# Image.
include/image
Open=(see %f &)
View=%view{ascii} identify %f
#View=%view{ascii} asciiview %f
+################################################################
+# Audio.
+
regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
Include=audio
regex/\.([mM][pP]3)$
@@ -119,6 +102,9 @@
include/audio
Open=vlc %f&
+################################################################
+# Video.
+
regex/\.([wW][mM][vV])$
Include=video
regex/\.([fF][lL][iIcCvV])$
@@ -150,8 +136,14 @@
include/video
Open=vlc %f
+################################################################
+# Documentation.
-
+# GNU Info page
+type/^Info\ text
+ Open=info -f %f
+shell/.info
+ Open=info -f %f
type/^PDF
Open=see %f 2>/dev/null &
shell/.chm
@@ -163,22 +155,22 @@
shell/.epub
Open=fbreader %f 2>/dev/null &
+################################################################
+# Build rules.
+
# Makefile
regex/[Mm]akefile$
Open=make -f %f %{Enter parameters}
-
# Imakefile
shell/Imakefile
Open=xmkmf -a
-
# Makefile.PL (MakeMaker)
regex/^Makefile.(PL|pl)$
Open=%var{PERL:perl} %f
-shell/.my
- Open=tmp=%f; echo ${tmp%.my} %f %{Enter opt:} %{Enter file:}
+################################################################
+# Open in Emacs.
-# Open in Emacs.
regex/\.(c|cpp|cxx)
Open=e %f
# Open=sensible-editor %f
@@ -195,11 +187,24 @@
#Open=%var{EDITOR:vi} %f
regex/\.(sh|bash|tcsh)
Edit=e %f
+regex/\.(te?xi|texinfo)$
+ Open=e %f
+################################################################
# Object files.
+
regex/\.(o|obj)
- #Open=sensible-pager %f
View=%view{ascii} file %f && nm %f
+regex/\.(so|so\.[0-9\.]*)$
+ View=%view{ascii} file %f && nm -C -D %f
+type/^ELF
+ View=%view{ascii} file %f && nm -C %f
shell/.class
View=%view{ascii} tmp=%p; javap -c ${tmp%%.class}
+################################################################
+# Misc, tutorial, help rules.
+
+shell/.my
+ Open=tmp=%f; echo ${tmp%.my} %f %{Enter opt:} %{Enter file:}
+