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