From 2704385e05784fa757207c7ca85939f46bd6d4a8 Mon Sep 17 00:00:00 2001 From: Leonard den Ottolander Date: Sun, 3 Jul 2005 12:43:15 +0000 Subject: [PATCH] lib/mc.ext.in: Move matches for plain compressed files down. --- ChangeLog | 4 +++ lib/mc.ext.in | 67 +++++++++++++++++++++++++++------------------------ 2 files changed, 40 insertions(+), 31 deletions(-) diff --git a/ChangeLog b/ChangeLog index 328d92241..27eb29dbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-07-03 Leonard den Ottolander + + * lib/mc.ext.in: Move matches for plain compressed files down. + 2005-07-03 Roland Illig * acinclude.m4 (MC_WITH_VFS): Don't link with libnsl diff --git a/lib/mc.ext.in b/lib/mc.ext.in index d1d4ed97c..f1fbd11bf 100644 --- a/lib/mc.ext.in +++ b/lib/mc.ext.in @@ -134,16 +134,6 @@ regex/\.(tar|TAR)$ 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 - # lha type/^LHa\ .*archive Open=%cd %p#ulha @@ -185,26 +175,6 @@ regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$ regex/\.(diff|patch)(\.(bz2|gz|Z))?$ Open=%cd %p#patchfs -# 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 - # ar library regex/\.s?a$ Open=%cd %p#uar @@ -233,9 +203,9 @@ regex/\.iso$ # 7zip archives (they are not man pages) shell/.7z - Open=%cd %p#u7z View=%view{ascii} 7za l %f 2>/dev/null + ### Sources ### # C @@ -263,6 +233,7 @@ shell/.s regex/\.(C|cc|cpp)$ Open=%var{EDITOR:vi} %f + ### Documentation ### # Texinfo @@ -426,6 +397,7 @@ include/video #Open=(gtv %f >/dev/null 2>&1 &) #Open=(xanim %f >/dev/null 2>&1 &) + ### Documents ### # Postscript @@ -523,6 +495,39 @@ 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 + + ### Default ### # Default target for anything not described above