.mc/bindings
changeset 296 0d7678e65dfa
parent 274 efb78fb374ee
child 297 94be7bf3d9a3
equal deleted inserted replaced
295:7970a5d63d57 296:0d7678e65dfa
   354 
   354 
   355 
   355 
   356 ### Sound files ###
   356 ### Sound files ###
   357 
   357 
   358 regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
   358 regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
   359 	Open=run-mailcap audio/x-wav:%f
   359 	Open=run-mailcap audio/x-wav:%f &
   360 	#Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms -e %f 1>/dev/null 2>&1 &); fi
       
   361 
   360 
   362 regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
   361 regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
   363 	Open=run-mailcap application/x-mod:%f
   362 	Open=run-mailcap application/x-mod:%f &
   364         #Open=mikmod %f
       
   365         #Open=tracker %f
       
   366 
       
   367 regex/\.([wW][aA][wW]22)$
       
   368        Open=vplay -s 22 %f
       
   369 
   363 
   370 regex/\.([mM][pP]3)$
   364 regex/\.([mM][pP]3)$
   371 	Open=run-mailcap audio/mpeg:%f
   365 	Open=run-mailcap audio/mpeg:%f &
   372 	#Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
       
   373 	View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p'
   366 	View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p'
   374 
   367 
   375 regex/\.([oO][gG][gG])$
   368 regex/\.([oO][gG][gG])$
   376 	Open=run-mailcap application/x-ogg:%f &
   369 	Open=run-mailcap application/x-ogg:%f &
   377 	#Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
       
   378 	View=%view{ascii} ogginfo %s
   370 	View=%view{ascii} ogginfo %s
   379 
   371 
   380 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
   372 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
   381 	Open=run-mailcap audio/midi:%f
   373 	Open=run-mailcap audio/midi:%f &
   382 	#Open=timidity %f
   374 	#Open=timidity %f
   383 
   375 
   384 regex/\.([wW][mM][aA])$
   376 regex/\.([wW][mM][aA])$
   385 	Open=mplayer -vo null %f
   377 	Open=mplayer -vo null %f
   386 	View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
   378 	View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
   417 
   409 
   418 regex/\.([oO][gG][mM])$
   410 regex/\.([oO][gG][mM])$
   419 	Include=video
   411 	Include=video
   420 
   412 
   421 regex/\.([rR][aA]?[mM])$
   413 regex/\.([rR][aA]?[mM])$
   422 	Open=run-mailcap audio/x-pn-realaudio:%f
   414 	Open=run-mailcap audio/x-pn-realaudio:%f &
   423 	#Open=(realplay %f >/dev/null 2>&1 &)
   415 	#Open=(realplay %f >/dev/null 2>&1 &)
   424 
   416 
   425 include/video
   417 include/video
   426 	Open=see %f
   418 	Open=see %f
   427 	#Open=(mplayer %f >/dev/null 2>&1 &)
   419 	#Open=(mplayer %f >/dev/null 2>&1 &)
   431 
   423 
   432 ### Documents ###
   424 ### Documents ###
   433 
   425 
   434 # Postscript
   426 # Postscript
   435 type/^PostScript
   427 type/^PostScript
   436 	Open=run-mailcap application/postscript:%f
   428 	Open=run-mailcap application/postscript:%f &
   437 	#Open=(gv %f &)
   429 	#Open=(gv %f &)
   438 	View=%view{ascii} ps2ascii %f
   430 	View=%view{ascii} ps2ascii %f
   439 
   431 
   440 # PDF
   432 # PDF
   441 type/^PDF
   433 type/^PDF
   442 #	Open=run-mailcap application/pdf:%f 1>/dev/null 2>&1 &
       
   443 	Open=run-mailcap application/pdf:%f 2>/dev/null &
   434 	Open=run-mailcap application/pdf:%f 2>/dev/null &
   444 	#Open=(xpdf %f &)
   435 	#Open=(xpdf %f &)
   445 	#Open=(acroread %f &)
   436 	#Open=(acroread %f &)
   446 	#Open=(ghostview %f &)
   437 	#Open=(ghostview %f &)
   447 	View=%view{ascii} pdftotext %f -
   438 	View=%view{ascii} pdftotext %f -
   460 shell/.djvu
   451 shell/.djvu
   461     Open=djview %f &
   452     Open=djview %f &
   462 
   453 
   463 # html
   454 # html
   464 regex/\.([hH][tT][mM][lL]?)$
   455 regex/\.([hH][tT][mM][lL]?)$
   465 	Open=run-mailcap text/html:%f
   456 	Open=run-mailcap text/html:%f &
   466 	#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
       
   467 	View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
   457 	View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
   468 
   458 
   469 # StarOffice 5.2
   459 # StarOffice 5.2
   470 shell/.sdw
   460 shell/.sdw
   471 	Open=(ooffice %f &)
   461 	Open=(ooffice %f &)
   479 shell/.abw
   469 shell/.abw
   480 	Open=(abiword %f &)
   470 	Open=(abiword %f &)
   481 
   471 
   482 # Microsoft Word Document
   472 # Microsoft Word Document
   483 regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
   473 regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
   484 	Open=run-mailcap application/msword:%f
   474 	Open=run-mailcap application/msword:%f &
   485 	#Open=(abiword %f >/dev/null 2>&1 &)
       
   486 	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
   475 	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
   487 type/^Microsoft\ Word
   476 type/^Microsoft\ Word
   488 	Open=(abiword %f >/dev/null 2>&1 &)
   477 	Open=(abiword %f >/dev/null 2>&1 &)
   489 	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
   478 	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
   490 
   479 
   491 # RTF document
   480 # RTF document
   492 regex/\.([rR][tT][fF])$
   481 regex/\.([rR][tT][fF])$
   493 	Open=run-mailcap text/rtf:%f
   482 	Open=run-mailcap text/rtf:%f &
   494 	#Open=(abiword %f >/dev/null 2>&1 &)
   483 	#Open=(abiword %f >/dev/null 2>&1 &)
   495 
   484 
   496 # Microsoft Excel Worksheet
   485 # Microsoft Excel Worksheet
   497 regex/\.([xX][lL][sSwW])$
   486 regex/\.([xX][lL][sSwW])$
   498 	Open=run-mailcap application/vnd.ms-excel:%f &
   487 	Open=run-mailcap application/vnd.ms-excel:%f &