.config/mc/mc.ext
changeset 327 a8face3f062f
parent 326 4cd8dc6dcb84
child 330 6197aede6474
equal deleted inserted replaced
326:4cd8dc6dcb84 327:a8face3f062f
   141 
   141 
   142 type/^Netpbm
   142 type/^Netpbm
   143 	Include=image
   143 	Include=image
   144 
   144 
   145 shell/.xcf
   145 shell/.xcf
   146 	Open=gimp %f
   146 	Open=(gimp %f &)
   147 
   147 
   148 shell/.xbm
   148 shell/.xbm
   149 	Include=image 
   149 	Include=image 
   150 	#Open=bitmap %f
   150 	#Open=bitmap %f
   151 
   151 
   152 shell/.xpm
   152 shell/.xpm
   153 	Include=image
   153 	Include=image
   154 	View=sxpm %f
   154 	View=sxpm %f
   155 
   155 
       
   156 shell/.ico
       
   157 	Include=image
       
   158 
   156 include/image
   159 include/image
   157 	Open=see %f
   160 	Open=(see %f &)
   158 	#Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
       
   159 	View=%view{ascii} identify %f
   161 	View=%view{ascii} identify %f
   160 	#View=%view{ascii} asciiview %f
   162 	#View=%view{ascii} asciiview %f
   161 
   163 
   162 
   164 
   163 ### Sound files ###
   165 ### Sound files ###
   168 regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
   170 regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
   169 	Open=run-mailcap application/x-mod:%f &
   171 	Open=run-mailcap application/x-mod:%f &
   170 
   172 
   171 regex/\.([mM][pP]3)$
   173 regex/\.([mM][pP]3)$
   172 	Open=run-mailcap audio/mpeg:%f &
   174 	Open=run-mailcap audio/mpeg:%f &
   173 	View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p'
   175 	View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
   174 
   176 
   175 regex/\.([oO][gG][gG])$
   177 regex/\.([oO][gG][gG|aA|vV|xX])$
   176 	Open=run-mailcap application/x-ogg:%f &
   178 	Open=run-mailcap application/x-ogg:%f &
   177 	View=%view{ascii} ogginfo %s
   179 	View=%view{ascii} ogginfo %s
       
   180 
       
   181 regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
       
   182 	Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
   178 
   183 
   179 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
   184 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
   180 	Open=run-mailcap audio/midi:%f
   185 	Open=run-mailcap audio/midi:%f
   181 
   186 
   182 regex/\.([wW][mM][aA])$
   187 regex/\.([wW][mM][aA])$
   185 
   190 
   186 
   191 
   187 ### Play lists ###
   192 ### Play lists ###
   188 
   193 
   189 regex/\.([mM]3[uU]|[pP][lL][sS])$
   194 regex/\.([mM]3[uU]|[pP][lL][sS])$
   190 	Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f &); fi
   195 	Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
   191 
   196 
   192 
   197 
   193 ### Video ###
   198 ### Video ###
   194 
   199 
   195 regex/\.([aA][vV][iI])$
   200 regex/\.([aA][vV][iI])$
   199 	Include=video
   204 	Include=video
   200 
   205 
   201 regex/\.([dD][iI][vV][xX])$
   206 regex/\.([dD][iI][vV][xX])$
   202 	Include=video
   207 	Include=video
   203 
   208 
       
   209 regex/\.([mM][kK][vV])$
       
   210 	Include=video
       
   211 
   204 regex/\.([mM][oO][vV]|[qQ][tT])$
   212 regex/\.([mM][oO][vV]|[qQ][tT])$
   205 	Include=video
   213 	Include=video
   206 
   214 
   207 regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
   215 regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
       
   216 	Include=video
       
   217 
       
   218 # MPEG-2 TS container + H.264 codec
       
   219 regex/\.([mM][tT][sS])$
   208 	Include=video
   220 	Include=video
   209 
   221 
   210 regex/\.([vV][oO][bB])$
   222 regex/\.([vV][oO][bB])$
   211 	Include=video
   223 	Include=video
   212 
   224 
   213 # Old VLC under Debian have no association for wmv mimetype.
   225 # Old VLC under Debian have no association for wmv mimetype.
   214 regex/\.([wW][mM][vV])$
   226 regex/\.([wW][mM][vV])$
   215 	Open=vlc %f &
   227 	Open=vlc %f &
       
   228 
       
   229 regex/\.([fF][lL][iIcCvV])$
       
   230 	Include=video
   216 
   231 
   217 regex/\.([oO][gG][mM])$
   232 regex/\.([oO][gG][mM])$
   218 	Include=video
   233 	Include=video
   219 
   234 
   220 regex/\.([rR][aA]?[mM])$
   235 regex/\.([rR][aA]?[mM])$
   224 include/video
   239 include/video
   225 	Open=see %f
   240 	Open=see %f
   226 	#Open=(mplayer %f >/dev/null 2>&1 &)
   241 	#Open=(mplayer %f >/dev/null 2>&1 &)
   227 	#Open=(gtv %f >/dev/null 2>&1 &)
   242 	#Open=(gtv %f >/dev/null 2>&1 &)
   228 	#Open=(xanim %f >/dev/null 2>&1 &)
   243 	#Open=(xanim %f >/dev/null 2>&1 &)
       
   244 
   229 
   245 
   230 ### Documents ###
   246 ### Documents ###
   231 
   247 
   232 # Postscript
   248 # Postscript
   233 type/^PostScript
   249 type/^PostScript
   265 	Open=run-mailcap text/html:%f &
   281 	Open=run-mailcap text/html:%f &
   266 	View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
   282 	View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
   267 
   283 
   268 # StarOffice 5.2
   284 # StarOffice 5.2
   269 shell/.sdw
   285 shell/.sdw
   270 	Open=(ooffice %f &)
   286 	Open=(libreoffice %f &)
   271 
   287 
   272 # StarOffice 6 and OpenOffice.org formats
   288 # StarOffice 6 and OpenOffice.org formats
   273 regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
   289 regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
   274 	Open=(ooffice %f &)
   290 	Open=(libreoffice %f &)
   275 	View=%view{ascii} unzip -p %f content.xml | o3totxt
   291 	View=%view{ascii} odt2txt %f
   276 
   292 
   277 # AbiWord
   293 # AbiWord
   278 shell/.abw
   294 shell/.abw
   279 	Open=(abiword %f &)
   295 	Open=(abiword %f &)
   280 
   296 
   291 	Open=run-mailcap text/rtf:%f &
   307 	Open=run-mailcap text/rtf:%f &
   292 	#Open=(abiword %f >/dev/null 2>&1 &)
   308 	#Open=(abiword %f >/dev/null 2>&1 &)
   293 
   309 
   294 # Microsoft Excel Worksheet
   310 # Microsoft Excel Worksheet
   295 regex/\.([xX][lL][sSwW])$
   311 regex/\.([xX][lL][sSwW])$
   296 	Open=run-mailcap application/vnd.ms-excel:%f &
   312 	Open=(gnumeric %f >/dev/null 2>&1 &)
   297 	#Open=(gnumeric %f >/dev/null 2>&1 &)
       
   298 	View=%view{ascii} xls2csv %f || strings %f
   313 	View=%view{ascii} xls2csv %f || strings %f
   299 type/^Microsoft\ Excel
   314 type/^Microsoft\ Excel
   300 	Open=run-mailcap application/vnd.ms-excel:%f &
   315 	Open=(gnumeric %f >/dev/null 2>&1 &)
   301 	#Open=(gnumeric %f >/dev/null 2>&1 &)
       
   302 	View=%view{ascii} xls2csv %f || strings %f
   316 	View=%view{ascii} xls2csv %f || strings %f
   303 
   317 
   304 # Use OpenOffice.org to open any MS Office documents
   318 # Use OpenOffice.org to open any MS Office documents
   305 type/^Microsoft\ Office\ Document
   319 type/^Microsoft\ Office\ Document
   306 	Open=(ooffice %f &)
   320 	Open=(libreoffice %f &)
   307 
   321 
   308 # Framemaker
   322 # Framemaker
   309 type/^FrameMaker
   323 type/^FrameMaker
   310 	Open=fmclient -f %f
   324 	Open=fmclient -f %f
   311 
   325 
   312 # DVI
   326 # DVI
   313 regex/\.([dD][vV][iI])$
   327 regex/\.([dD][vV][iI])$
   314 	Open=run-mailcap application/x-dvi:%f &
   328 	Open=run-mailcap %f 2>&1 &
   315 	#Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
   329 	View=%view{ascii} catdvi %f
   316 	View=%view{ascii} dvi2tty %f
       
   317 
       
   318 # TeX
       
   319 regex/\.([Tt][Ee][Xx])$
       
   320 	Open=sensible-editor %f
       
   321 	#Open=%var{EDITOR:vi} %f
       
   322 
   330 
   323 shell/.fb2
   331 shell/.fb2
   324     Open=fbreader %f &
   332     Open=fbreader %f &
   325 
   333 
   326 shell/.epub
   334 shell/.epub
   327     Open=fbreader %f &
   335     Open=fbreader %f &
   328 
   336 
       
   337 # DjVu
       
   338 regex/\.(djvu|DJVU)$
       
   339 	Open=djview %f &
   329 
   340 
   330 ### Miscellaneous ###
   341 ### Miscellaneous ###
   331 
   342 
   332 # Makefile
   343 # Makefile
   333 regex/[Mm]akefile$
   344 regex/[Mm]akefile$
   348 
   359 
   349 # REXX script
   360 # REXX script
   350 regex/\.(rexx?|cmd)$
   361 regex/\.(rexx?|cmd)$
   351        Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
   362        Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
   352 
   363 
   353 
   364 # Disk images for Commodore computers (VIC20, C64, C128)
   354 ### Plain compressed files ###
   365 regex/\.(d64|D64)$
   355 
   366 	Open=%cd %p/uc1541://
   356 # zip
   367 	View=%view{ascii} c1541 %f -list
   357 type/^([Zz][Ii][Pp])\ archive
   368 	Extract=c1541 %f -extract
   358 	Open=%cd %p#uzip
   369 
   359 	View=%view{ascii} unzip -v %f
   370 # Glade, a user interface designer for GTK+ and GNOME
   360 
   371 regex/\.([Gg][Ll][Aa][Dd][Ee])$
   361 # zoo
   372 	Open=if glade-3 --version >/dev/null 2>&1; then (glade-3 %f >/dev/null 2>&1 &); else (glade-2 %f >/dev/null 2>&1 &); fi
   362 regex/\.([Zz][Oo][Oo])$
   373 
   363 	Open=%cd %p#uzoo
   374 # Gettext Catalogs
   364 	View=%view{ascii} zoo l %f
   375 shell/.mo
   365 	
   376 	View=%view{ascii} msgunfmt %f || cat %f
   366 # gzip
   377 
   367 type/^gzip
   378 # lyx
   368 	Open=gzip -dc %f | sensible-pager
   379 regex/\.(lyx|LYX)$
   369 	View=%view{ascii} gzip -dc %f 2>/dev/null
   380 	Open=lyx %f
   370 
   381 	View=%view{ascii} lyxcat %f
   371 # bzip2
   382 
   372 type/^bzip2
   383 # torrent
   373 	Open=bzip2 -dc %f | sensible-pager
   384 regex/\.([tT][oO][rR][rR][eE][nN][tT])$
   374 	View=%view{ascii} bzip2 -dc %f 2>/dev/null
   385 	View=%view{ascii} ctorrent -x %f 2>/dev/null
   375 
       
   376 # bzip
       
   377 type/^bzip
       
   378 	Open=bzip -dc %f | sensible-pager
       
   379 	View=%view{ascii} bzip -dc %f 2>/dev/null
       
   380 
       
   381 # compress
       
   382 type/^compress
       
   383 	Open=gzip -dc %f | sensible-pager
       
   384 	View=%view{ascii} gzip -dc %f 2>/dev/null
       
   385 
   386 
   386 ### Debian additions ###
   387 ### Debian additions ###
   387 
   388 
   388 # Gettext Catalogs
   389 # Gettext Catalogs
   389 shell/.mo
   390 shell/.mo
   405     Open=e %f
   406     Open=e %f
   406 shell/.java
   407 shell/.java
   407     Open=e %f
   408     Open=e %f
   408 shell/.f
   409 shell/.f
   409     Open=e %f
   410     Open=e %f
       
   411 regex/\.([Tt][Ee][Xx])$
       
   412 	Open=e %f
       
   413 	#Open=%var{EDITOR:vi} %f
   410 regex/\.(sh|bash|tcsh)
   414 regex/\.(sh|bash|tcsh)
   411     Edit=e %f
   415     Edit=e %f
   412 
   416 
   413 # Object files.
   417 # Object files.
   414 regex/\.(o|obj)
   418 regex/\.(o|obj)