From 3fd891256cf62fa7d196472a398ea90c7c2013d7 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 27 Aug 2002 06:33:47 +0000 Subject: [PATCH] * lib/mc.ext.in: Add new OpenOffice.org formats. Always use OpenOffice.org, not StarOffice. Add more video formats. --- ChangeLog | 3 +++ lib/mc.ext.in | 64 ++++++++++++++++++++++++++++++++------------------- 2 files changed, 43 insertions(+), 24 deletions(-) diff --git a/ChangeLog b/ChangeLog index f1ce15163..7c7cf0b32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-08-27 Pavel Roskin + * lib/mc.ext.in: Add new OpenOffice.org formats. Always use + OpenOffice.org, not StarOffice. Add more video formats. + * lib/mc.ext.in: Use gzip instead of gunzip and compress. Avoid unnecessary pipeline. Redirect stderr from cpio, because it can be non-empty even for successful operations. diff --git a/lib/mc.ext.in b/lib/mc.ext.in index 54ce9784f..6f0e3174b 100644 --- a/lib/mc.ext.in +++ b/lib/mc.ext.in @@ -184,31 +184,31 @@ regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz2$ ### Images ### type/^GIF - Include=image-options + Include=image type/^JPEG - Include=image-options + Include=image type/^PC\ bitmap - Include=image-options + Include=image type/^PNG - Include=image-options + Include=image type/^TIFF - Include=image-options + Include=image type/^PBM - Include=image-options + Include=image type/^PGM - Include=image-options + Include=image type/^PPM - Include=image-options + Include=image type/^Netpbm - Include=image-options + Include=image shell/.xcf Open=gimp %f @@ -217,10 +217,10 @@ shell/.xbm Open=bitmap %f shell/.xpm - Include=image-options + Include=image View=sxpm %f -include/image-options +include/image Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (ee %f &); fi View=%view{ascii} identify %f #View=%view{ascii} asciiview %f @@ -249,22 +249,34 @@ regex/\.(ogg|OGG|Ogg)$ regex/\.(midi?|MIDI?|Midi?|rmid?|RMID?|Rmid?)$ Open=timidity %f -### Multimedia ### -regex/\.(mpe?g|MPE?G|Mpe?g)$ - Open=(mplayer %f >/dev/null 2>&1 &) - #Open=(gtv %f >/dev/null 2>&1 &) +### Video ### -regex/\.(avi|AVI|Avi|mov|MOV|Mov)$ - Open=(mplayer %f >/dev/null 2>&1 &) - #Open=(xanim %f >/dev/null 2>&1 &) +regex/\.(avi|AVI|Avi)$ + Include=video -regex/\.(asf|ASF|Asf|wmv|WMV|Wmv)$ - Open=(mplayer %f >/dev/null 2>&1 &) +regex/\.(asf|ASF|Asf)$ + Include=video + +regex/\.(divx|DIVX|DivX|Divx)$ + Include=video + +regex/\.(mp4|MP4|Mp4|mpe?g|MPE?G|Mpe?g)$ + Include=video + +regex/\.(vob|VOB|Vob)$ + Include=video + +regex/\.(wmv|WMV|Wmv)$ + Include=video regex/\.(rm|RM|Rm|ram|RAM|Ram)$ Open=(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 &) ### Documents ### @@ -288,9 +300,13 @@ regex/\.([Hh]tml?|HTML?)$ Open=if test -n "@X11_WWW@" && test -n "$DISPLAY"; then (@X11_WWW@ file://%d/%p &) >/dev/null 2>&1; else links %f || lynx -force_html %f; fi View=%view{ascii} links -dump %f || lynx -dump -force_html %f -# StarOffice and OpenOffice +# StarOffice 5.2 shell/.sdw - Open=(soffice %f &) + Open=(ooffice %f &) + +# StarOffice 6 and OpenOffice.org formats +shell/.(sxw|stw|sxc|stc|sxi|sti|sxd|std|sxm|sxg) + Open=(ooffice %f &) # AbiWord shell/.abw @@ -316,9 +332,9 @@ type/^Microsoft\ Excel Open=(gnumeric %f >/dev/null 2>&1 &) View=%view{ascii} xls2csv %f || strings %f -# Use StarOffice to open any MS Office documents +# Use OpenOffice.org to open any MS Office documents type/^Microsoft\ Office\ Document - Open=(soffice %f &) + Open=(ooffice %f &) # Framemaker type/^FrameMaker