# HG changeset patch # User Oleksandr Gavenko # Date 1333732374 -10800 # Node ID 667339502172ea99ef3d59737cdca521598017b8 # Parent e30f2ac488aa83faf59e7641b7f503e453ff1fa7 Remove archive section as version 4.8.x break compatibility for virtual FS syntax. It was loaded from system wide config. diff -r e30f2ac488aa -r 667339502172 .config/mc/mc.ext --- a/.config/mc/mc.ext Fri Apr 06 19:59:58 2012 +0300 +++ b/.config/mc/mc.ext Fri Apr 06 20:12:54 2012 +0300 @@ -42,8 +42,8 @@ # # %% -> % 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 -# non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs, +# %f -> name of the current file. Unlike %p, if file is located on a +# non-local virtual filesystem, i.e. either tarfs 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. # If you don't want to get a local copy and want to get the @@ -80,126 +80,10 @@ # match (i.e. if a file matches the first and second entry and View action # is missing in the first one, then on pressing F3 the View action from # the second entry will be used. default should catch all the actions. - -### Archives ### - -# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk -regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$ - Open=%cd %p#utar - View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf - - -regex/\.tar\.bz$ - # Open=%cd %p#utar - View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf - - -regex/\.t(ar\.bz2|bz|b2)$ - Open=%cd %p#utar - View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf - - -# .tar.F - used in QNX -regex/\.tar\.F$ - # Open=%cd %p#utar - View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf - - -# .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)$ - Open=%cd %p#utar - View=%view{ascii} tar tvvf - < %f - -# lha -type/^LHa\ .*archive - Open=%cd %p#ulha - View=%view{ascii} lha l %f - -# arj -regex/\.a(rj|[0-9][0-9])$ - Open=%cd %p#uarj - View=%view{ascii} arj l %f - -# ha -regex/\.([Hh][Aa])$ - Open=%cd %p#uha - View=%view{ascii} ha lf %f - -# rar -regex/\.[rR]([aA][rR]|[0-9][0-9])$ - Open=%cd %p#urar - View=%view{ascii} rar v -c- %f - -# cab -regex/\.([cC][aA][bB])$ - Open=%cd %p#ucab - View=%view{ascii} cabextract -l %f - -# cpio -shell/.cpio.Z - Open=%cd %p#ucpio - View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null - -shell/.cpio.gz - Open=%cd %p#ucpio - View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null - -shell/.cpio - Open=%cd %p#ucpio - View=%view{ascii} cpio -itv <'%f' 2>/dev/null - -# ls-lR -regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$ - Open=%cd %p#lslR - -# patch -regex/\.(diff|patch)(\.(bz2|gz|Z))?$ - Open=%cd %p#patchfs - -# ar library -regex/\.s?a$ - Open=%cd %p#uar - #Open=%view{ascii} ar tv %f - View=%view{ascii} file %f && nm %f - -# trpm -regex/\.trpm$ - Open=%cd %p#trpm - View=%view{ascii} rpm -qivl --scripts `basename %p .trpm` - -# RPM packages (SuSE uses *.spm for source packages) -regex/\.(rpm|spm)$ - Open=%cd %p#rpm - View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f - -# deb -regex/\.u?deb$ - Open=%cd %p#deb - View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f - -# dpkg -shell/.debd - Open=%cd %p#debd - View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'` -# apt -shell/.deba - Open=%cd %p#deba - View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'` - -# ISO9660 -regex/\.iso$ - Open=%cd %p#iso9660 - View=%view{ascii} isoinfo -l -i %f - -# 7zip archives (they are not man pages) -shell/.7z - View=%view{ascii} 7za l %f 2>/dev/null - -# .tar.xz, .txz -regex/\.t(ar\.xz|xz)$ - Open=%cd %p#utar - View=%view{ascii} xz -dc %f 2>/dev/null | tar tvvf - +# +# Any new entries you develop for you are always welcome if they are +# useful on more than one system. You can post your modifications +# as tickets at www.midnight-commander.org ### Documentation ### diff -r e30f2ac488aa -r 667339502172 .config/mc/mc.ext.cygwin --- a/.config/mc/mc.ext.cygwin Fri Apr 06 19:59:58 2012 +0300 +++ b/.config/mc/mc.ext.cygwin Fri Apr 06 20:12:54 2012 +0300 @@ -1,3 +1,4 @@ +# -*- mode: conf -*- # Midnight Commander 3.0 extension file # Warning: Structure of this file has changed completely with version 3.0 # @@ -85,117 +86,6 @@ # by e-mail to mc-devel@gnome.org -### Archives ### - -# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk -regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$ - Open=%cd %p#utar - View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf - - -regex/\.tar\.bz$ - # Open=%cd %p#utar - View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf - - -regex/\.t(ar\.bz2|bz|b2)$ - Open=%cd %p#utar - View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf - - -# .tar.F - used in QNX -regex/\.tar\.F$ - # Open=%cd %p#utar - View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf - - -# .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)$ - Open=%cd %p#utar - View=%view{ascii} tar tvvf - < %f - -# lha -type/^LHa\ .*archive - Open=%cd %p#ulha - View=%view{ascii} lha l %f - -# arj -regex/\.a(rj|[0-9][0-9])$ - Open=%cd %p#uarj - View=%view{ascii} arj l %f - -# ha -regex/\.([Hh][Aa])$ - Open=%cd %p#uha - View=%view{ascii} ha lf %f - -# rar -regex/\.[rR]([aA][rR]|[0-9][0-9])$ - Open=%cd %p#urar - View=%view{ascii} rar v -c- %f - -# cpio -shell/.cpio.Z - Open=%cd %p#ucpio - View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null - -shell/.cpio.gz - Open=%cd %p#ucpio - View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null - -shell/.cpio - Open=%cd %p#ucpio - View=%view{ascii} cpio -itv <'%f' 2>/dev/null - -# ls-lR -regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$ - Open=%cd %p#lslR - -# patch -regex/\.(diff|patch)(\.(bz2|gz|Z))?$ - Open=%cd %p#patchfs - -# ar library -regex/\.s?a$ - Open=%cd %p#uar - #Open=%view{ascii} ar tv %f - View=%view{ascii} file %f && nm %f - -# trpm -regex/\.trpm$ - Open=%cd %p#trpm - View=%view{ascii} rpm -qivl --scripts `basename %p .trpm` - -# RPM packages (SuSE uses *.spm for source packages) -regex/\.(rpm|spm)$ - Open=%cd %p#rpm - View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f - -# deb -regex/\.u?deb$ - Open=%cd %p#deb - View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f - -# dpkg -shell/.debd - Open=%cd %p#debd - View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'` -# apt -shell/.deba - Open=%cd %p#deba - View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'` - -# ISO9660 -regex/\.iso$ - Open=%cd %p#iso9660 - View=%view{ascii} isoinfo -l -i %f - -# 7zip archives (they are not man pages) -shell/.7z - View=%view{ascii} 7za l %f 2>/dev/null - - ### Documentation ### # Texinfo