simple patch for lib/mc.ext.in
- From: q# <eth0 o2 pl>
- To: mc-devel gnome org
- Subject: simple patch for lib/mc.ext.in
- Date: Sun, 10 Oct 2004 18:44:17 +0200
Hi,
It adds:
* view images with identify || file
* tar archive with uppercase
* bittorrent files view
* playlist files (with xmms or mplayer)
* .WMA audio files (with mplayer)
* .ogm video (with mplayer)
* .qt video (with mplayer)
* minor stuff
--
best regards
q#
--- mc.ext.in Fri Apr 2 09:22:18 2004
+++ mc.ext.in.new Sun Oct 10 18:33:34 2004
@@ -222,14 +222,14 @@
include/image
Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
- View=%view{ascii} identify %f
+ View=%view{ascii} identify %f 2>/dev/null || file %f 2>/dev/null
#View=%view{ascii} asciiview %f
### Sound files ###
-regex/\.(wav|WAV|Wav|snd|SND|Snd|voc|VOC|Voc|au|AU|Au)$
- Open=play %f
+regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU])$
+ Open=if [ "$DISPLAY" = "" ]; then play %f; else (exec xmms -e %f 1>/dev/null 2>&1 &); fi
regex/\.(mod|MOD|Mod|s3m|S3M|S3m|xm|XM|Xm)$
Open=mikmod %f
@@ -238,30 +238,43 @@
regex/\.(wav22|WAV22)$
Open=vplay -s 22 %f
-regex/\.(mp3|MP3|Mp3)$
- Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
+regex/\.([mM][pP]3)$
+ Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (exec xmms %f &); fi
View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
+ #View=%view{ascii} ( file -b %f; echo; echo; mp3info -r a -x %f; id3info %f ) 2>&1
regex/\.(ogg|OGG|Ogg)$
- Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
+ Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (exec xmms %f &); fi
View=%view{ascii} ogginfo %s
regex/\.(midi?|MIDI?|Midi?|rmid?|RMID?|Rmid?)$
Open=timidity %f
+regex/\.(wma|WMA|Wma)$
+ 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
+### Play lists ###
+
+regex/\.([mM]3[uU]|[pP][lL][sS])$
+ Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f &); fi
+
+
### Video ###
+regex/\.([oO][gG][mM])$
+ Include=video
+
regex/\.(avi|AVI|Avi)$
Include=video
-regex/\.(asf|ASF|Asf)$
+regex/\.([aA][sS][fFxX])$
Include=video
regex/\.(divx|DIVX|DivX|Divx)$
Include=video
-regex/\.(mov|MOV|Mov)$
+regex/\.(mov|MOV|Mov|[qQ][tT])$
Include=video
regex/\.(mp4|MP4|Mp4|mpe?g|MPE?G|Mpe?g)$
@@ -274,12 +287,12 @@
Include=video
regex/\.(rm|RM|Rm|ram|RAM|Ram)$
- Open=(realplay %f >/dev/null 2>&1 &)
+ Open=(exec realplay %f >/dev/null 2>&1 &)
include/video
- Open=(mplayer %f >/dev/null 2>&1 &)
- #Open=(gtv %f >/dev/null 2>&1 &)
- #Open=(xanim %f >/dev/null 2>&1 &)
+ Open=(exec mplayer -slave %f >/dev/null 2>&1 &)
+ #Open=(exec gtv %f >/dev/null 2>&1 &)
+ #Open=(exec xine %f >/dev/null 2>&1 &)
### Documents ###
@@ -360,7 +373,7 @@
Open=make -f %f %{Enter parameters}
# Imakefile
-shell/Imakefile
+shell/Imakefile$
Open=xmkmf -a
# Makefile.PL (MakeMaker)
@@ -379,6 +392,11 @@
### Archives ###
+# .TGZ .TPZ .TAR.GZ .TAR.Z
+regex/\.T([GP]Z|AR\.GZ)$
+ Open=%cd %p#utar
+ View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
+
# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
regex/\.t([gp]?z|ar\.g?[zZ])$
Open=%cd %p#utar
@@ -435,7 +453,7 @@
# rar
regex/\.[rR]([aA][rR]|[0-9][0-9])$
Open=%cd %p#urar
- View=%view{ascii} rar v -c- %f
+ View=%view{ascii} unrar v -c- %f
# cpio
shell/.cpio.Z
@@ -497,12 +515,21 @@
# deb
regex/\.deb$
Open=%cd %p#deb
+ #Open%cd %p#uar
View=%view{ascii} dpkg-deb -c %f
+ #View=%vew{ascii} ar tv %f
# ISO9660
regex/\.iso$
Open=%cd %p#iso9660
View=%view{ascii} isoinfo -l -i %f
+
+
+### Misc ###
+
+# BitTorrent
+regex/\.([tT][oO[rR][rR][eE][nN][tT])$
+ View=%view{ascii} btshowmetainfo.py %f
### Default ###
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]