linux/.mc/bindings
changeset 18 2e991b769c95
parent 17 e11e0adb941b
child 19 7ce1a1072d87
equal deleted inserted replaced
17:e11e0adb941b 18:2e991b769c95
     1 # Midnight Commander 3.0 extension file
       
     2 # Warning: Structure of this file has changed completely with version 3.0
       
     3 #
       
     4 # All lines starting with # or empty lines are thrown away.
       
     5 # Lines starting in the first column should have following format:
       
     6 #
       
     7 # keyword/descNL, i.e. everything after keyword/ until new line is desc
       
     8 #
       
     9 # keyword can be: 
       
    10 #
       
    11 #    shell (desc is, when starting with a dot, any extension (no wildcars), 
       
    12 #          i.e. matches all the files *desc . Example: .tar matches *.tar;
       
    13 #          if it doesn't start with a dot, it matches only a file of that name)
       
    14 #
       
    15 #    regex (desc is an extended regular expression)
       
    16 #          Please note that we are using the GNU regex library and thus
       
    17 #          \| matches the literal | and | has special meaning (or) and
       
    18 #          () have special meaning and \( \) stand for literal ( ).
       
    19 #
       
    20 #    type  (file matches this if `file %f` matches regular expression desc
       
    21 #          (the filename: part from `file %f` is removed))
       
    22 #
       
    23 #    directory (matches any directory matching regular expression desc)
       
    24 #
       
    25 #    include (matches an include directive)
       
    26 #
       
    27 #    default (matches any file no matter what desc is)
       
    28 #
       
    29 # Other lines should start with a space or tab and should be in the format:
       
    30 #
       
    31 # keyword=commandNL (with no spaces around =), where keyword should be: 
       
    32 #
       
    33 #    Open (if the user presses Enter or doubleclicks it), 
       
    34 #
       
    35 #    View (F3), Edit (F4)
       
    36 #
       
    37 #    Include is the keyword used to add any further entries from an include/
       
    38 #    section
       
    39 #
       
    40 # command is any one-line shell command, with the following substitutions:
       
    41 #
       
    42 # %% -> % character
       
    43 # %p -> name of the current file (without path, but pwd is its path)
       
    44 # %f -> name of the current file. Unlike %p, if file is located on a 
       
    45 #	non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,
       
    46 #	then the file will be temporarily copied into a local directory
       
    47 #	and %f will be the full path to this local temporal file.
       
    48 #	If you don't want to get a local copy and want to get the
       
    49 #	virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
       
    50 #	use %d/%p instead of %f.
       
    51 # %d -> name of the current directory (pwd, without trailing slash)
       
    52 # %s -> "selected files", i.e. space separated list of tagged files if any
       
    53 #       or name of the current file
       
    54 # %t -> list of tagged files
       
    55 # %u -> list of tagged files (they'll be untaged after the command)
       
    56 #
       
    57 # (If these 6 letters are in uppercase, they refer to the other panel.
       
    58 # But you shouldn't have to use it in this file.)
       
    59 #
       
    60 #
       
    61 # %cd -> the rest is a path mc should change into (cd won't work, since it's
       
    62 #	a child process).  %cd handles even vfs names.
       
    63 #
       
    64 # %view -> the command you type will be piped into mc's internal file viewer
       
    65 #	if you type only the %view and no command, viewer will load %f file
       
    66 #	instead (i.e. no piping, so it is different to %view cat %f)
       
    67 #	%view may be directly followed by {} with a list of any of
       
    68 #	ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
       
    69 #	text using backspace for bold and underscore) and unform
       
    70 #	(no highlighting for nroff sequences) separated by commas.
       
    71 #
       
    72 # %var -> You use it like this: %var{VAR:default}.  This macro will expand
       
    73 #       to the value of the VAR variable in the environment if it's set
       
    74 #       otherwise the value in default will be used.  This is similar to
       
    75 #       the Bourne shell ${VAR-default} construct.
       
    76 #
       
    77 # Rules are applied from top to bottom, thus the order is important.
       
    78 # If some actions are missing, search continues as if this target didn't
       
    79 # match (i.e. if a file matches the first and second entry and View action
       
    80 # is missing in the first one, then on pressing F3 the View action from
       
    81 # the second entry will be used. default should catch all the actions.
       
    82 #
       
    83 # Any new entries you develop for you are always welcome if they are
       
    84 # useful on more than one system.  You can send your modifications
       
    85 # by e-mail to mc-devel@gnome.org
       
    86 
       
    87 
       
    88 ### Changes ###
       
    89 #
       
    90 # Reorganization: 2000-05-01 Michal Svec <rebel@penguin.cz>
       
    91 
       
    92 
       
    93 ### TODO ###
       
    94 #
       
    95 # Postscript	Open: ps2svga [gs -DEVICE=jpeg|zgv or something]
       
    96 # Images		asciiview
       
    97 # 
       
    98 # All X Apps	[Nothing/Warning] if no DISPLAY
       
    99 # Not found	[Default/Warning]
       
   100 # Empty Output	[Default/Warning]
       
   101 # Edit:		CopyOut+EDIT+CopyIn
       
   102 # Security	Check gzip/bzip EDIT (mktemp)
       
   103 # 
       
   104 # Maybe:	Open/XOpen/GOpen/KOpen/... for Console/X/GNOME/KDE/etc.
       
   105 
       
   106 regex/\.pdf\.gz$
       
   107     Open=(zxpdf %f &)
       
   108 
       
   109 ### Archives ###
       
   110 
       
   111 # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
       
   112 regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$
       
   113 	Open=%cd %p#utar
       
   114 	View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
       
   115 
       
   116 regex/\.tar\.bz$
       
   117 	# Open=%cd %p#utar
       
   118 	View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
       
   119 
       
   120 regex/\.t(ar\.bz2|bz|b2)$
       
   121 	Open=%cd %p#utar
       
   122 	View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
       
   123 
       
   124 # .tar.F - used in QNX
       
   125 regex/\.tar\.F$
       
   126 	# Open=%cd %p#utar
       
   127 	View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -
       
   128 
       
   129 # .qpr/.qpk - QNX Neutrino package installer files 
       
   130 regex/\.(qp[rk])$
       
   131 	Open=%cd %p#utar
       
   132 	View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
       
   133 
       
   134 # tar
       
   135 regex/\.(tar|TAR)$
       
   136 	Open=%cd %p#utar
       
   137 	View=%view{ascii} tar tvvf - < %f 
       
   138 
       
   139 # lha
       
   140 type/^LHa\ .*archive
       
   141 	Open=%cd %p#ulha
       
   142 	View=%view{ascii} lha l %f
       
   143 
       
   144 # arj
       
   145 regex/\.a(rj|[0-9][0-9])$
       
   146 	Open=%cd %p#uarj
       
   147 	View=%view{ascii} arj l %f
       
   148 
       
   149 # ha
       
   150 regex/\.([Hh][Aa])$
       
   151 	Open=%cd %p#uha
       
   152 	View=%view{ascii} ha lf %f
       
   153 
       
   154 # rar
       
   155 regex/\.[rR]([aA][rR]|[0-9][0-9])$
       
   156 	Open=%cd %p#urar
       
   157 	View=%view{ascii} rar v -c- %f
       
   158 
       
   159 # cpio
       
   160 shell/.cpio.Z
       
   161 	Open=%cd %p#ucpio
       
   162 	View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
       
   163 
       
   164 shell/.cpio.gz
       
   165 	Open=%cd %p#ucpio
       
   166 	View=%view{ascii} gzip -dc '%f' | cpio -itv 2>/dev/null
       
   167 
       
   168 shell/.cpio
       
   169 	Open=%cd %p#ucpio
       
   170 	View=%view{ascii} cpio -itv <'%f' 2>/dev/null
       
   171 
       
   172 # ls-lR
       
   173 regex/(^|\.)ls-?lR(\.g?z|Z|bz2)?$
       
   174 	Open=%cd %p#lslR
       
   175 
       
   176 # patch
       
   177 regex/\.(diff|patch)(\.(bz2|gz|Z))?$
       
   178         Open=%cd %p#patchfs
       
   179 
       
   180 # ar library
       
   181 regex/\.s?a$
       
   182 	Open=%cd %p#uar
       
   183 	#Open=%view{ascii} ar tv %f
       
   184 	View=%view{ascii} file %f && nm %f
       
   185 
       
   186 # trpm
       
   187 regex/\.trpm$
       
   188 	Open=%cd %p#trpm
       
   189 	View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
       
   190 
       
   191 # RPM packages (SuSE uses *.spm for source packages)
       
   192 regex/\.(rpm|spm)$
       
   193 	Open=%cd %p#rpm
       
   194 	View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
       
   195 
       
   196 # deb
       
   197 regex/\.u?deb$
       
   198 	Open=%cd %p#deb
       
   199 	View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f
       
   200 
       
   201 # dpkg
       
   202 shell/.debd
       
   203         Open=%cd %p#debd
       
   204         View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
       
   205 # apt
       
   206 shell/.deba
       
   207         Open=%cd %p#deba
       
   208         View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
       
   209 
       
   210 # ISO9660
       
   211 regex/\.iso$
       
   212 	Open=%cd %p#iso9660
       
   213 	View=%view{ascii} isoinfo -l -i %f
       
   214 
       
   215 # 7zip archives (they are not man pages)
       
   216 shell/.7z
       
   217 	View=%view{ascii} 7za l %f 2>/dev/null
       
   218 
       
   219 
       
   220 ### Sources ###
       
   221 
       
   222 # C
       
   223 shell/.c
       
   224 	Open=sensible-editor %f
       
   225 
       
   226 # Fortran
       
   227 shell/.f
       
   228 	Open=sensible-editor %f
       
   229 	
       
   230 # Header
       
   231 regex/\.(h|hpp)$
       
   232 	Open=sensible-editor %f
       
   233 
       
   234 # Object
       
   235 shell/.o
       
   236 	#Open=sensible-pager %f
       
   237 	View=%view{ascii} file %f && nm %f
       
   238 
       
   239 # Asm
       
   240 shell/.s
       
   241 	Open=sensible-editor %f
       
   242 
       
   243 # C++
       
   244 regex/\.(C|cc|cpp)$
       
   245 	Open=sensible-editor %f
       
   246 
       
   247 
       
   248 ### Documentation ###
       
   249 
       
   250 # Texinfo
       
   251 regex/\.(te?xi|texinfo)$
       
   252 
       
   253 # GNU Info page
       
   254 type/^Info\ text
       
   255 	Open=info -f %f
       
   256 
       
   257 shell/.info
       
   258 	Open=info -f %f
       
   259 
       
   260 # Manual page
       
   261 # Exception - .so libraries are not manual pages
       
   262 regex/\.(so|so\.[0-9\.]*)$
       
   263 	View=%view{ascii} file %f && nm %f
       
   264 
       
   265 regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
       
   266 	Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac | sensible-pager
       
   267 	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff  -man %f ;; esac
       
   268 
       
   269 # Troff with me macros.
       
   270 # Exception - "read.me" is not a nroff file.
       
   271 shell/read.me
       
   272 	Open=
       
   273 	View=
       
   274 
       
   275 shell/.me
       
   276 	Open=nroff  -me %f | sensible-pager
       
   277 	View=%view{ascii,nroff} nroff  -me %f
       
   278 
       
   279 # Troff with ms macros.
       
   280 shell/.ms
       
   281 	Open=nroff  -ms %f | sensible-pager
       
   282 	View=%view{ascii,nroff} nroff  -ms %f
       
   283 
       
   284 # Manual page - compressed
       
   285 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
       
   286 	Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac | sensible-pager
       
   287 	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff  -man ;; esac
       
   288 
       
   289 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
       
   290 	Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac | sensible-pager
       
   291 	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff  -man ;; esac
       
   292 
       
   293 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
       
   294 	Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac | sensible-pager
       
   295 	View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff  -man ;; esac
       
   296 
       
   297 
       
   298 ### Images ###
       
   299 
       
   300 type/^GIF
       
   301 	Include=image
       
   302 
       
   303 type/^JPEG
       
   304 	View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f
       
   305 	Include=image
       
   306 
       
   307 type/^PC\ bitmap
       
   308 	Include=image
       
   309 
       
   310 type/^PNG
       
   311 	Include=image
       
   312 
       
   313 type/^TIFF
       
   314 	Include=image
       
   315 
       
   316 type/^PBM
       
   317 	Include=image
       
   318 
       
   319 type/^PGM
       
   320 	Include=image
       
   321 
       
   322 type/^PPM
       
   323 	Include=image
       
   324 
       
   325 type/^Netpbm
       
   326 	Include=image
       
   327 
       
   328 shell/.xcf
       
   329 	Open=gimp %f
       
   330 
       
   331 shell/.xbm
       
   332 	Include=image 
       
   333 	#Open=bitmap %f
       
   334 
       
   335 shell/.xpm
       
   336 	Include=image
       
   337 	View=sxpm %f
       
   338 
       
   339 include/image
       
   340 	Open=see %f
       
   341 	#Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
       
   342 	View=%view{ascii} identify %f
       
   343 	#View=%view{ascii} asciiview %f
       
   344 
       
   345 
       
   346 ### Sound files ###
       
   347 
       
   348 regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
       
   349 	Open=run-mailcap audio/x-wav:%f
       
   350 	#Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms -e %f 1>/dev/null 2>&1 &); fi
       
   351 
       
   352 regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
       
   353 	Open=run-mailcap application/x-mod:%f
       
   354         #Open=mikmod %f
       
   355         #Open=tracker %f
       
   356 
       
   357 regex/\.([wW][aA][wW]22)$
       
   358        Open=vplay -s 22 %f
       
   359 
       
   360 regex/\.([mM][pP]3)$
       
   361 	Open=run-mailcap audio/mpeg:%f
       
   362 	#Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
       
   363 	View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p'
       
   364 
       
   365 regex/\.([oO][gG][gG])$
       
   366 	Open=run-mailcap application/x-ogg:%f &
       
   367 	#Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
       
   368 	View=%view{ascii} ogginfo %s
       
   369 
       
   370 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
       
   371 	Open=run-mailcap audio/midi:%f
       
   372 	#Open=timidity %f
       
   373 
       
   374 regex/\.([wW][mM][aA])$
       
   375 	Open=mplayer -vo null %f
       
   376 	View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
       
   377 
       
   378 
       
   379 ### Play lists ###
       
   380 
       
   381 regex/\.([mM]3[uU]|[pP][lL][sS])$
       
   382 	Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f &); fi
       
   383 
       
   384 
       
   385 ### Video ###
       
   386 
       
   387 regex/\.([aA][vV][iI])$
       
   388 	Include=video
       
   389 
       
   390 regex/\.([aA][sS][fFxX])$
       
   391 	Include=video
       
   392 
       
   393 regex/\.([dD][iI][vV][xX])$
       
   394 	Include=video
       
   395 
       
   396 regex/\.([mM][oO][vV]|[qQ][tT])$
       
   397 	Include=video
       
   398 
       
   399 regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
       
   400 	Include=video
       
   401 
       
   402 regex/\.([vV][oO][bB])$
       
   403 	Include=video
       
   404 
       
   405 regex/\.([wW][mM][vV])$
       
   406 	Include=video
       
   407 
       
   408 regex/\.([oO][gG][mM])$
       
   409 	Include=video
       
   410 
       
   411 regex/\.([rR][aA]?[mM])$
       
   412 	Open=run-mailcap audio/x-pn-realaudio:%f
       
   413 	#Open=(realplay %f >/dev/null 2>&1 &)
       
   414 
       
   415 include/video
       
   416 	Open=see %f
       
   417 	#Open=(mplayer %f >/dev/null 2>&1 &)
       
   418 	#Open=(gtv %f >/dev/null 2>&1 &)
       
   419 	#Open=(xanim %f >/dev/null 2>&1 &)
       
   420 
       
   421 
       
   422 ### Documents ###
       
   423 
       
   424 # Postscript
       
   425 type/^PostScript
       
   426 	Open=run-mailcap application/postscript:%f
       
   427 	#Open=(gv %f &)
       
   428 	View=%view{ascii} ps2ascii %f
       
   429 
       
   430 # PDF
       
   431 type/^PDF
       
   432 #	Open=run-mailcap application/pdf:%f 1>/dev/null 2>&1 &
       
   433 	Open=run-mailcap application/pdf:%f 2>/dev/null &
       
   434 	#Open=(xpdf %f &)
       
   435 	#Open=(acroread %f &)
       
   436 	#Open=(ghostview %f &)
       
   437 	View=%view{ascii} pdftotext %f -
       
   438 
       
   439 # CHM
       
   440 shell/.chm
       
   441 	Open=xchm %f &
       
   442 	#Open=(xpdf %f &)
       
   443 	#Open=(acroread %f &)
       
   444 	#Open=(ghostview %f &)
       
   445 
       
   446 # The following code very ugly and should not be taken as example.
       
   447 # It should be cleaned up when the new format of mc.ext is developed.
       
   448 
       
   449 # DJVU
       
   450 shell/.djvu
       
   451     Open=djview %f &
       
   452 
       
   453 # html
       
   454 regex/\.([hH][tT][mM][lL]?)$
       
   455 	Open=run-mailcap text/html:%f
       
   456 	#Open=(if test -n "" && test -n "$DISPLAY"; then ( file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
       
   457 	View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
       
   458 
       
   459 # StarOffice 5.2
       
   460 shell/.sdw
       
   461 	Open=(ooffice %f &)
       
   462 
       
   463 # StarOffice 6 and OpenOffice.org formats
       
   464 regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
       
   465 	Open=(ooffice %f &)
       
   466 	View=%view{ascii} unzip -p %f content.xml | o3totxt
       
   467 
       
   468 # AbiWord
       
   469 shell/.abw
       
   470 	Open=(abiword %f &)
       
   471 
       
   472 # Microsoft Word Document
       
   473 regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
       
   474 	Open=run-mailcap application/msword:%f
       
   475 	#Open=(abiword %f >/dev/null 2>&1 &)
       
   476 	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
       
   477 type/^Microsoft\ Word
       
   478 	Open=(abiword %f >/dev/null 2>&1 &)
       
   479 	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
       
   480 
       
   481 # RTF document
       
   482 regex/\.([rR][tT][fF])$
       
   483 	Open=run-mailcap text/rtf:%f
       
   484 	#Open=(abiword %f >/dev/null 2>&1 &)
       
   485 
       
   486 # Microsoft Excel Worksheet
       
   487 regex/\.([xX][lL][sSwW])$
       
   488 	Open=run-mailcap application/vnd.ms-excel:%f &
       
   489 	#Open=(gnumeric %f >/dev/null 2>&1 &)
       
   490 	View=%view{ascii} xls2csv %f || strings %f
       
   491 type/^Microsoft\ Excel
       
   492 	Open=run-mailcap application/vnd.ms-excel:%f &
       
   493 	#Open=(gnumeric %f >/dev/null 2>&1 &)
       
   494 	View=%view{ascii} xls2csv %f || strings %f
       
   495 
       
   496 # Use OpenOffice.org to open any MS Office documents
       
   497 type/^Microsoft\ Office\ Document
       
   498 	Open=(ooffice %f &)
       
   499 
       
   500 # Framemaker
       
   501 type/^FrameMaker
       
   502 	Open=fmclient -f %f
       
   503 
       
   504 # DVI
       
   505 regex/\.([dD][vV][iI])$
       
   506 	Open=run-mailcap application/x-dvi:%f &
       
   507 	#Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
       
   508 	View=%view{ascii} dvi2tty %f
       
   509 
       
   510 # TeX
       
   511 regex/\.([Tt][Ee][Xx])$
       
   512 	Open=sensible-editor %f
       
   513 	#Open=%var{EDITOR:vi} %f
       
   514 
       
   515 
       
   516 ### Miscellaneous ###
       
   517 
       
   518 # Makefile
       
   519 regex/[Mm]akefile$
       
   520 	Open=make -f %f %{Enter parameters}
       
   521 
       
   522 # Imakefile
       
   523 shell/Imakefile
       
   524 	Open=xmkmf -a
       
   525 
       
   526 # Makefile.PL (MakeMaker)
       
   527 regex/^Makefile.(PL|pl)$
       
   528 	Open=%var{PERL:perl} %f
       
   529 
       
   530 # dbf
       
   531 regex/\.([dD][bB][fF])$
       
   532        Open=%view{ascii} dbview %f
       
   533        View=%view{ascii} dbview -b %f
       
   534 
       
   535 # REXX script
       
   536 regex/\.(rexx?|cmd)$
       
   537        Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
       
   538 
       
   539 
       
   540 ### Plain compressed files ###
       
   541 
       
   542 # zip
       
   543 type/^([Zz][Ii][Pp])\ archive
       
   544 	Open=%cd %p#uzip
       
   545 	View=%view{ascii} unzip -v %f
       
   546 
       
   547 # zoo
       
   548 regex/\.([Zz][Oo][Oo])$
       
   549 	Open=%cd %p#uzoo
       
   550 	View=%view{ascii} zoo l %f
       
   551 	
       
   552 # gzip
       
   553 type/^gzip
       
   554 	Open=gzip -dc %f | sensible-pager
       
   555 	View=%view{ascii} gzip -dc %f 2>/dev/null
       
   556 
       
   557 # bzip2
       
   558 type/^bzip2
       
   559 	Open=bzip2 -dc %f | sensible-pager
       
   560 	View=%view{ascii} bzip2 -dc %f 2>/dev/null
       
   561 
       
   562 # bzip
       
   563 type/^bzip
       
   564 	Open=bzip -dc %f | sensible-pager
       
   565 	View=%view{ascii} bzip -dc %f 2>/dev/null
       
   566 
       
   567 # compress
       
   568 type/^compress
       
   569 	Open=gzip -dc %f | sensible-pager
       
   570 	View=%view{ascii} gzip -dc %f 2>/dev/null
       
   571 
       
   572 ### Debian additions ###
       
   573 
       
   574 # Gettext Catalogs
       
   575 shell/.mo
       
   576 	View=%view{ascii} msgunfmt %f || cat %f
       
   577 
       
   578 ### My. ###
       
   579 
       
   580 shell/.my
       
   581     Open=echo %f %{Enter opt:} %{Enter file:}
       
   582 
       
   583 ### Default ###
       
   584 
       
   585 # Default target for anything not described above
       
   586 default/*
       
   587 	Open=
       
   588 	View=
       
   589 
       
   590 ### EOF ###