Food for mc.ext



Yup, yet another patch file...

This one has stuff someone might find of use in their mc.ext or ~/mc/bindings file

- - 8< - -
--- mc.ext~    2008-10-24 16:45:07.000000000 +0000
+++ mc.ext    2008-10-28 19:49:15.000000000 +0000
@@ -6,9 +6,9 @@
#
# keyword/descNL, i.e. everything after keyword/ until new line is desc
#
-# keyword can be:
+# keyword can be:
#
-# shell (desc is, when starting with a dot, any extension (no wildcars), +# shell (desc is, when starting with a dot, any extension (no wildcards),
#          i.e. matches all the files *desc . Example: .tar matches *.tar;
# if it doesn't start with a dot, it matches only a file of that name)
#
@@ -28,9 +28,9 @@
#
# Other lines should start with a space or tab and should be in the format:
#
-# keyword=commandNL (with no spaces around =), where keyword should be:
+# keyword=commandNL (with no spaces around =), where keyword should be:
#
-#    Open (if the user presses Enter or doubleclicks it),
+#    Open (if the user presses Enter or doubleclicks it),
#
#    View (F3), Edit (F4)
#
@@ -41,7 +41,7 @@
#
# %% -> % character
# %p -> name of the current file (without path, but pwd is its path)
-# %f -> name of the current file. Unlike %p, if file is located on a
+# %f -> name of the current file. Unlike %p, if file is located on a
#    non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,
#    then the file will be temporarily copied into a local directory
#    and %f will be the full path to this local temporal file.
@@ -94,13 +94,13 @@
#
# Postscript    Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
# Images        asciiview
-#
+#
# All X Apps    [Nothing/Warning] if no DISPLAY
# Not found    [Default/Warning]
# Empty Output    [Default/Warning]
# Edit:        CopyOut+EDIT+CopyIn
# Security    Check gzip/bzip EDIT (mktemp)
-#
+#
# Maybe:    Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.


@@ -129,23 +129,58 @@
    # Open=%cd %p#utar
    View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -

-# .qpr/.qpk - QNX Neutrino package installer files
+# .qpr/.qpk - QNX Neutrino package installer files
regex/\.(qp[rk])$
    Open=%cd %p#utar
    View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -

# tar
-regex/\.(tar|TAR)$
+regex/\.([Tt][Aa][Rr])$
    Open=%cd %p#utar
    View=%view{ascii} tar tvvf %f

+# zip
+type/^([Zz][Ii][Pp])\ archive
+    Open=%cd %p#uzip
+    View=%view{ascii} unzip -v %f
+
+# zoo
+regex/\.([Zz][Oo][Oo])$
+    Open=%cd %p#uzoo
+    View=%view{ascii} zoo l %f
+
+# cab (Microsoft cabinets)
+regex/\.([Cc][Aa][Bb])$
+#    Open=%cd %p#ucab
+    View=%view{ascii} cabextract -l %f
+
# lha
type/^LHa\ .*archive
    Open=%cd %p#ulha
    View=%view{ascii} lha l %f

+# pmarc (CP/M)
+regex/\.([Pp][Mm][Aa])$
+    Open=%cd %p#upma
+    View=%view{ascii} av %f
+
+# pak (MS-DOS)
+regex/\.(pak|PAK)$
+#    Open=%view{ascii} av %f
+    View=%view{ascii} av %f
+
+# lbr (CP/M)
+regex/\.([Ll][Bb][Rr])$
+    Open=%cd %p#ulbr
+    View=%view{ascii} av %f
+
+# arc/pka (MS-DOS) and ark (CP/M)
+regex/\.([Aa][Rr][CcKk]|[Pp][Kk][Aa])$
+    Open=%cd %p#uarc
+    View=%view{ascii} av %f
+
# arj
-regex/\.a(rj|[0-9][0-9])$
+regex/\.[Aa]([Rr][Jj]|[0-9][0-9])$
    Open=%cd %p#uarj
    View=%view{ascii} unarj l %f

@@ -159,6 +194,11 @@
    Open=%cd %p#urar
    View=%view{ascii} rar v -c- %f

+# hpack
+regex/\.[Hh][Pp][Kk]$
+#    Open=%cd %p#urar
+    View=%view{ascii} hpack v -r %f
+
# ALZip
regex/\.(alz|ALZ)$
    Open=%cd %p#ualz
@@ -183,7 +223,7 @@

# patch
regex/\.(diff|patch)(\.(bz2|gz|Z))?$
-        Open=%cd %p#patchfs
+    Open=%cd %p#patchfs

# ar library
regex/\.s?a$
@@ -191,6 +231,11 @@
    #Open=%view{ascii} ar tv %f
    View=%view{ascii} file %f && nm %f

+# lzop
+type/^lzop
+#    Open=lzop -dc %f | %var{PAGER:more}
+    View=%view{ascii} lzop -lPv %f
+
# trpm
regex/\.trpm$
    Open=%cd %p#trpm
@@ -221,6 +266,36 @@
    Open=%cd %p#mailfs


+
+### Plain compressed files ###
+
+# gzip
+type/^gzip
+    Open=gzip -dc %f | %var{PAGER:more}
+    View=%view{ascii} gzip -dc %f 2>/dev/null
+
+# bzip2
+type/^bzip2
+    Open=bzip2 -dc %f | %var{PAGER:more}
+    View=%view{ascii} bzip2 -dc %f 2>/dev/null
+
+# bzip
+type/^bzip
+    Open=bzip -dc %f | %var{PAGER:more}
+    View=%view{ascii} bzip -dc %f 2>/dev/null
+
+# compress
+type/^compress
+    Open=gzip -dc %f | %var{PAGER:more}
+    View=%view{ascii} gzip -dc %f 2>/dev/null
+
+# lzma
+regex/\.lzma$
+    Open=lzma -dc %f | %var{PAGER:more}
+    View=%view{ascii} lzma -dc %f 2>/dev/null
+
+
+
### Sources ###

# C
@@ -230,7 +305,7 @@
# Fortran
shell/.f
    Open=%var{EDITOR:vi} %f
- +
# Header
regex/\.(h|hpp)$
    Open=%var{EDITOR:vi} %f
@@ -355,31 +430,71 @@

### Sound files ###

-regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
- Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
+regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]?|[sS][nN][dD])$
+ Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi

regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
-       Open=mikmod %f
-       #Open=tracker %f
+    Open=mikmod %f
+    #Open=tracker %f
+
+regex/.([Ss][Ff]2)$
+    Open=sfxload %f
+    View=%view{ascii} sf2text %f
+
+regex/.([Ss][Bb][Kk])$
+    Open=sfxload %f
+    View=%view{ascii} sf2text %f
+
+regex/\.([Cc][Mm][Ff]|[Rr][Oo][Ll])$
+    Open=adplay -oirm %f

regex/\.([wW][aA][wW]22)$
-       Open=vplay -s 22 %f
+    Open=vplay -s 22 %f

-regex/\.([mM][pP]3)$
+regex/\.([mM][pP][23])$
Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'

-regex/\.([oO][gG][gG])$
+regex/\.([oO][gG][gG]|[Ff][Ll][Aa][Cc]|[Ss][Pp][Xx])$
Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
    View=%view{ascii} ogginfo %s

-regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
-    Open=timidity %f
+regex/\.([Mm][Ii][Dd][Ii]?|[Mm][Dd][Ii]|[Rr][Mm][Ii][Dd]?|[Kk][Aa][Rr])$
+    Open=drvmidi %f
+    View=%view{ascii} midicsv %f

regex/\.([wW][mM][aA])$
    Open=mplayer -vo null %f
View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f

+regex/\.([Mm][Pp]4|[Aa][Aa][Cc])$
+    Open=faad -q -d -f 1 -w %f | play -t raw -r 44100 -s -2 -c 2 -
+    View=%view{ascii} faad -i %f 2>&1 | sed -ne '1,+11! p'
+
+shell/.bonk
+    Open=bonk play %f
+
+shell/.psid
+    Open=sidplayer %f
+
+shell/.sid
+    Open=sidplay2 -O1 %f
+
+shell/.shn
+    Open=shorten -x %f - | bplay
+
+shell/.als
+    Open=mp4als -x %f - | bplay
+
+shell/.kxs
+    Open=kexis -s %f - | bplay
+
+shell/.ape
+    Open=mac %f - -d | bplay
+
+shell/.wv
+    Open=wvunpack -q %f -o - | bplay
+

### Play lists ###

@@ -401,7 +516,7 @@
regex/\.([mM][oO][vV]|[qQ][tT])$
    Include=video

-regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
+regex/\.([mM][pP][eE]?[gG])$
    Include=video

regex/\.([vV][oO][bB])$
@@ -511,50 +626,12 @@

# dbf
regex/\.([dD][bB][fF])$
-       Open=%view{ascii} dbview %f
-       View=%view{ascii} dbview -b %f
+    Open=%view{ascii} dbview %f
+    View=%view{ascii} dbview -b %f

# REXX script
regex/\.(rexx?|cmd)$
-       Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
-
-
-### Plain compressed files ###
-
-# zip
-type/^([Zz][Ii][Pp])\ archive
-    Open=%cd %p#uzip
-    View=%view{ascii} unzip -v %f
-
-# zoo
-regex/\.([Zz][Oo][Oo])$
-    Open=%cd %p#uzoo
-    View=%view{ascii} zoo l %f
- -# gzip
-type/^gzip
-    Open=gzip -dc %f | %var{PAGER:more}
-    View=%view{ascii} gzip -dc %f 2>/dev/null
-
-# bzip2
-type/^bzip2
-    Open=bzip2 -dc %f | %var{PAGER:more}
-    View=%view{ascii} bzip2 -dc %f 2>/dev/null
-
-# bzip
-type/^bzip
-    Open=bzip -dc %f | %var{PAGER:more}
-    View=%view{ascii} bzip -dc %f 2>/dev/null
-
-# compress
-type/^compress
-    Open=gzip -dc %f | %var{PAGER:more}
-    View=%view{ascii} gzip -dc %f 2>/dev/null
-
-# lzma
-regex/\.lzma$
-    Open=lzma -dc %f | %var{PAGER:more}
-    View=%view{ascii} lzma -dc %f 2>/dev/null
+    Open=rexx %f %{Enter parameters};echo "Press ENTER";read y


### Default ###
- - 8< - -

Reynir H. Stefánsson (reynirhs mi is)
--
In foreign countries, Rescue is the primary unit of the US Armed Forces.
All the other services exist solely as support for Rescue.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]