2011-11-09 06:17:45 +00:00
|
|
|
diff -up mc-4.8.0/misc/mc.ext.in.extensions mc-4.8.0/misc/mc.ext.in
|
|
|
|
--- mc-4.8.0/misc/mc.ext.in.extensions 2011-10-17 11:33:45.000000000 +0200
|
|
|
|
+++ mc-4.8.0/misc/mc.ext.in 2011-11-09 07:04:24.981728775 +0100
|
|
|
|
@@ -403,7 +403,7 @@ shell/.ico
|
2009-12-15 14:57:01 +00:00
|
|
|
Include=image
|
|
|
|
|
|
|
|
include/image
|
|
|
|
- Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
|
2011-11-09 06:17:45 +00:00
|
|
|
+ Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (xdg-open %f &); fi
|
2009-12-15 14:57:01 +00:00
|
|
|
View=%view{ascii} identify %f
|
|
|
|
#View=%view{ascii} asciiview %f
|
|
|
|
|
2011-11-09 06:17:45 +00:00
|
|
|
@@ -411,7 +411,8 @@ include/image
|
2009-12-15 14:57:01 +00:00
|
|
|
### 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
|
|
|
|
+ Include=audio
|
|
|
|
+# 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
|
2011-11-09 06:17:45 +00:00
|
|
|
@@ -421,15 +422,22 @@ regex/\.([wW][aA][wW]22)$
|
2009-08-05 12:26:02 +00:00
|
|
|
Open=vplay -s 22 %f
|
|
|
|
|
|
|
|
regex/\.([mM][pP]3)$
|
|
|
|
- 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'
|
|
|
|
+ Include=audio
|
|
|
|
+# 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/\.([mM][kK][aA])$
|
|
|
|
+ Include=audio
|
|
|
|
|
|
|
|
regex/\.([oO][gG][gG|aA|vV|xX])$
|
|
|
|
- Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
|
2009-12-15 14:57:01 +00:00
|
|
|
+ Include=audio
|
|
|
|
+# Open=ogg123 %f
|
2009-08-05 12:26:02 +00:00
|
|
|
+# Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
|
|
|
|
View=%view{ascii} ogginfo %s
|
|
|
|
|
|
|
|
regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
|
2009-12-15 14:57:01 +00:00
|
|
|
- Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
|
|
|
|
+ Include=audio
|
|
|
|
+# Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
|
|
|
|
|
|
|
|
regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
|
|
|
|
Open=timidity %f
|
2011-11-09 06:17:45 +00:00
|
|
|
@@ -438,11 +446,15 @@ regex/\.([wW][mM][aA])$
|
2009-08-05 12:26:02 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
+include/audio
|
|
|
|
+ Open=mplayer %f
|
|
|
|
+ View=%view{ascii} mplayer -identify -vo null -ao null -frames 0 %f 2>&1 | sed -n '/^ID_/p'
|
|
|
|
|
|
|
|
### Play lists ###
|
|
|
|
|
|
|
|
regex/\.([mM]3[uU]|[pP][lL][sS])$
|
|
|
|
- Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
|
|
|
|
+ Open=mplayer -vo null -playlist %f
|
|
|
|
+# Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
|
|
|
|
|
|
|
|
|
|
|
|
### Video ###
|
2011-11-09 06:17:45 +00:00
|
|
|
@@ -494,12 +506,12 @@ include/video
|
2009-08-05 12:26:02 +00:00
|
|
|
|
2009-12-15 14:57:01 +00:00
|
|
|
# Postscript
|
|
|
|
type/^PostScript
|
|
|
|
- Open=(gv %f &)
|
|
|
|
+ Open=(xdg-open %f &)
|
|
|
|
View=%view{ascii} ps2ascii %f
|
|
|
|
|
|
|
|
# PDF
|
|
|
|
type/^PDF
|
|
|
|
- Open=(xpdf %f &)
|
|
|
|
+ Open=(xdg-open %f &)
|
|
|
|
#Open=(acroread %f &)
|
|
|
|
#Open=(ghostview %f &)
|
|
|
|
View=%view{ascii} pdftotext %f -
|
2011-11-09 06:17:45 +00:00
|
|
|
@@ -509,7 +521,7 @@ type/^PDF
|
2009-12-15 14:57:01 +00:00
|
|
|
|
|
|
|
# html
|
|
|
|
regex/\.([hH][tT][mM][lL]?)$
|
|
|
|
- Open=(if test -n "@X11_WWW@" && test -n "$DISPLAY"; then (@X11_WWW@ file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
|
2010-01-03 10:06:06 +00:00
|
|
|
+ Open=xdg-open file://%d/%p 1>&2
|
2009-12-15 14:57:01 +00:00
|
|
|
View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
|
2009-08-05 12:26:02 +00:00
|
|
|
|
2009-12-15 14:57:01 +00:00
|
|
|
# StarOffice 5.2
|
2011-11-09 06:17:45 +00:00
|
|
|
@@ -527,22 +539,27 @@ shell/.abw
|
2009-08-05 12:26:02 +00:00
|
|
|
|
|
|
|
# Microsoft Word Document
|
|
|
|
regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
|
|
|
|
- Open=(abiword %f >/dev/null 2>&1 &)
|
2010-01-03 10:06:06 +00:00
|
|
|
+ Open=(xdg-open %f &)
|
2009-08-05 12:26:02 +00:00
|
|
|
+# Open=(abiword %f >/dev/null 2>&1 &)
|
|
|
|
View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
|
|
|
|
type/^Microsoft\ Word
|
|
|
|
- Open=(abiword %f >/dev/null 2>&1 &)
|
2010-01-03 10:06:06 +00:00
|
|
|
+ Open=(xdg-open %f &)
|
2009-08-05 12:26:02 +00:00
|
|
|
+# Open=(abiword %f >/dev/null 2>&1 &)
|
|
|
|
View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
|
|
|
|
|
|
|
|
# RTF document
|
|
|
|
regex/\.([rR][tT][fF])$
|
|
|
|
- Open=(abiword %f >/dev/null 2>&1 &)
|
2010-01-03 10:06:06 +00:00
|
|
|
+ Open=(xdg-open %f &)
|
2009-08-05 12:26:02 +00:00
|
|
|
+# Open=(abiword %f >/dev/null 2>&1 &)
|
|
|
|
|
|
|
|
# Microsoft Excel Worksheet
|
|
|
|
regex/\.([xX][lL][sSwW])$
|
|
|
|
- Open=(gnumeric %f >/dev/null 2>&1 &)
|
2010-01-03 10:06:06 +00:00
|
|
|
+ Open=(xdg-open %f &)
|
2009-08-05 12:26:02 +00:00
|
|
|
+# Open=(gnumeric %f >/dev/null 2>&1 &)
|
|
|
|
View=%view{ascii} xls2csv %f || strings %f
|
|
|
|
type/^Microsoft\ Excel
|
|
|
|
- Open=(gnumeric %f >/dev/null 2>&1 &)
|
2010-01-03 10:06:06 +00:00
|
|
|
+ Open=(xdg-open %f &)
|
2009-08-05 12:26:02 +00:00
|
|
|
+# Open=(gnumeric %f >/dev/null 2>&1 &)
|
|
|
|
View=%view{ascii} xls2csv %f || strings %f
|
|
|
|
|
|
|
|
# Use OpenOffice.org to open any MS Office documents
|
2012-03-20 12:47:11 +00:00
|
|
|
@@ -584,7 +584,7 @@
|
2011-11-09 06:17:45 +00:00
|
|
|
|
|
|
|
# DjVu
|
2012-03-20 12:47:11 +00:00
|
|
|
regex/\.(djvu?|DJVU?)$
|
2011-11-09 06:17:45 +00:00
|
|
|
- Open=djview %f &
|
2012-03-20 12:47:11 +00:00
|
|
|
+ Open=(xdg-open %f || djview %f) &
|
|
|
|
View=%view{ascii} djvused -e print-pure-txt %f
|
2011-11-09 06:17:45 +00:00
|
|
|
|
|
|
|
### Miscellaneous ###
|
2012-03-20 12:47:11 +00:00
|
|
|
|