Advertisement
Guest User

Untitled

a guest
Oct 10th, 2013
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.93 KB | None | 0 0
  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 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 post your modifications
  85. # as tickets at www.midnight-commander.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.  
  107. ### Archives ###
  108.  
  109. # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
  110. regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$
  111. Open=%cd %p#utar
  112. View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
  113.  
  114. regex/\.tar\.bz$
  115. # Open=%cd %p#utar
  116. View=%view{ascii} bzip -dc %f 2>/dev/null | tar tvvf -
  117.  
  118. regex/\.t(ar\.bz2|bz2?|b2)$
  119. Open=%cd %p#utar
  120. View=%view{ascii} bzip2 -dc %f 2>/dev/null | tar tvvf -
  121.  
  122. # .tar.lzma, .tlz
  123. regex/\.t(ar\.lzma|lz)$
  124. Open=%cd %p#utar
  125. View=%view{ascii} lzma -dc %f 2>/dev/null | tar tvvf -
  126.  
  127. # .tar.xz, .txz
  128. regex/\.t(ar\.xz|xz)$
  129. Open=%cd %p#utar
  130. View=%view{ascii} xz -dc %f 2>/dev/null | tar tvvf -
  131.  
  132. # .tar.F - used in QNX
  133. regex/\.tar\.F$
  134. # Open=%cd %p#utar
  135. View=%view{ascii} freeze -dc %f 2>/dev/null | tar tvvf -
  136.  
  137. # .qpr/.qpk - QNX Neutrino package installer files
  138. regex/\.(qp[rk])$
  139. Open=%cd %p#utar
  140. View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
  141.  
  142. # tar
  143. regex/\.(tar|TAR)$
  144. Open=%cd %p#utar
  145. View=%view{ascii} tar tvvf - < %f
  146.  
  147. # lha
  148. type/^LHa\ .*archive
  149. Open=%cd %p#ulha
  150. View=%view{ascii} lha l %f
  151.  
  152. # arj
  153. regex/\.a(rj|[0-9][0-9])$
  154. Open=%cd %p#uarj
  155. View=%view{ascii} unarj l %f
  156.  
  157. # cab
  158. regex/\.([cC][aA][bB])$
  159. Open=%cd %p#ucab
  160. View=%view{ascii} cabextract -l %f
  161.  
  162. # ha
  163. regex/\.([Hh][Aa])$
  164. Open=%cd %p#uha
  165. View=%view{ascii} ha lf %f
  166.  
  167. # rar
  168. regex/\.[rR]([aA][rR]|[0-9][0-9])$
  169. Open=%cd %p#urar
  170. View=%view{ascii} rar v -c- %f
  171.  
  172. # ALZip
  173. regex/\.(alz|ALZ)$
  174. Open=%cd %p#ualz
  175. View=%view{ascii} unalz -l %f
  176.  
  177. # cpio
  178. shell/.cpio.Z
  179. Open=%cd %p#ucpio
  180. View=%view{ascii} gzip -dc %f | cpio -itv 2>/dev/null
  181.  
  182. shell/.cpio.gz
  183. Open=%cd %p#ucpio
  184. View=%view{ascii} gzip -dc %f | cpio -itv 2>/dev/null
  185.  
  186. shell/.cpio
  187. Open=%cd %p#ucpio
  188. View=%view{ascii} cpio -itv < %f 2>/dev/null
  189.  
  190. # ls-lR
  191. regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
  192. Open=%cd %p#lslR
  193.  
  194. # patch
  195. regex/\.(diff|patch)(\.bz2)$
  196. Open=%cd %p#patchfs
  197. View=%view{ascii} bzip2 -dc %f 2>/dev/null
  198.  
  199. regex/\.(diff|patch)(\.(gz|Z))$
  200. Open=%cd %p#patchfs
  201. View=%view{ascii} gzip -dc %f 2>/dev/null
  202.  
  203. regex/\.(diff|patch)$
  204. Open=%cd %p#patchfs
  205. View=%view{ascii} /bin/cat %f 2>/dev/null
  206.  
  207. # ar library
  208. regex/\.s?a$
  209. Open=%cd %p#uar
  210. #Open=%view{ascii} ar tv %f
  211. View=%view{ascii} file %f && nm -C %f
  212.  
  213. # trpm
  214. regex/\.trpm$
  215. Open=%cd %p#trpm
  216. View=%view{ascii} rpm -qivl --scripts `basename %p .trpm`
  217.  
  218. # RPM packages (SuSE uses *.spm for source packages)
  219. regex/\.(src\.rpm|spm)$
  220. Open=%cd %p#rpm
  221. View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
  222.  
  223. regex/\.rpm$
  224. Open=%cd %p#rpm
  225. View=%view{ascii} if rpm --nosignature --version >/dev/null 2>&1; then RPM="rpm --nosignature" ; else RPM="rpm" ; fi ; $RPM -qivlp --scripts %f
  226.  
  227. # deb
  228. regex/\.u?deb$
  229. Open=%cd %p#deb
  230. View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f
  231.  
  232. # dpkg
  233. shell/.debd
  234. Open=%cd %p#debd
  235. View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
  236. # apt
  237. shell/.deba
  238. Open=%cd %p#deba
  239. View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
  240.  
  241. # ISO9660
  242. regex/\.([iI][sS][oO])$
  243. Open=%cd %p#iso9660
  244. View=%view{ascii} isoinfo -l -i %f
  245.  
  246. # 7zip archives (they are not man pages)
  247. regex/\.(7z|7Z)$
  248. Open=%cd %p#u7z
  249. View=%view{ascii} 7za l %f 2>/dev/null
  250.  
  251. # Mailboxes
  252. type/^ASCII\ mail\ text
  253. Open=%cd %p#mailfs
  254.  
  255.  
  256. ### Sources ###
  257.  
  258. # C
  259. shell/.c
  260. Open=%var{EDITOR:vim} %f
  261.  
  262. # Fortran
  263. shell/.f
  264. Open=%var{EDITOR:vim} %f
  265.  
  266. # Header
  267. regex/\.(h|hpp)$
  268. Open=%var{EDITOR:vim} %f
  269.  
  270. # Asm
  271. shell/.s
  272. Open=%var{EDITOR:vim} %f
  273.  
  274. # C++
  275. regex/\.(C|cc|cpp)$
  276. Open=%var{EDITOR:vim} %f
  277.  
  278. # .so libraries
  279. regex/\.(so|so\.[0-9\.]*)$
  280. View=%view{ascii} file %f && nm -C -D %f
  281.  
  282. # Object
  283. type/^ELF
  284. #Open=%var{PAGER:more} %f
  285. View=%view{ascii} file %f && nm -C %f
  286.  
  287. ### Documentation ###
  288.  
  289. # Texinfo
  290. regex/\.(te?xi|texinfo)$
  291.  
  292. # GNU Info page
  293. type/^Info\ text
  294. Open=info -f %f
  295.  
  296. shell/.info
  297. Open=info -f %f
  298.  
  299. # Exception: .3gp are video files not manual pages
  300. regex/\.(3[gG][pP])$
  301. Include=video
  302.  
  303. # Manual page
  304. regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
  305. Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  306. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac
  307.  
  308. # Perl pod page
  309. shell/.pod
  310. Open=pod2man %f | nroff -c -Tlatin1 -mandoc | %var{PAGER:more}
  311. View=%view{ascii,nroff} pod2man %f | nroff -c -Tlatin1 -mandoc
  312.  
  313. # Troff with me macros.
  314. # Exception - "read.me" is not a nroff file.
  315. shell/read.me
  316. Open=
  317. View=
  318.  
  319. shell/.me
  320. Open=nroff -c -Tlatin1 -me %f | %var{PAGER:more}
  321. View=%view{ascii,nroff} nroff -c -Tlatin1 -me %f
  322.  
  323. # Troff with ms macros.
  324. shell/.ms
  325. Open=nroff -c -Tlatin1 -ms %f | %var{PAGER:more}
  326. View=%view{ascii,nroff} nroff -c -Tlatin1 -ms %f
  327.  
  328. # Manual page - compressed
  329. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
  330. Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  331. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  332.  
  333. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
  334. Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  335. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  336.  
  337. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
  338. Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  339. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  340.  
  341. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
  342. Open=case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  343. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  344.  
  345. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
  346. Open=case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  347. View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  348.  
  349. # CHM
  350. regex/\.(chm|CHM)$
  351. Open=which kchmviewer > /dev/null 2>&1 && (kchmviewer %f &) || (xchm %f &)
  352.  
  353. ### Images ###
  354.  
  355. type/^GIF
  356. Include=image
  357.  
  358. type/^JPEG
  359. View=%view{ascii} identify %f; test -x /usr/bin/gwenview && echo && gwenview %f 2>/dev/null
  360. Include=image
  361.  
  362. type/^PC\ bitmap
  363. Include=image
  364.  
  365. type/^PNG
  366. Include=image
  367.  
  368. type/^TIFF
  369. Include=image
  370.  
  371. type/^PBM
  372. Include=image
  373.  
  374. type/^PGM
  375. Include=image
  376.  
  377. type/^PPM
  378. Include=image
  379.  
  380. type/^Netpbm
  381. Include=image
  382.  
  383. shell/.xcf
  384. Open=(gimp %f &)
  385.  
  386. shell/.xbm
  387. Open=bitmap %f
  388.  
  389. shell/.xpm
  390. Include=image
  391. View=sxpm %f
  392.  
  393. shell/.ico
  394. Include=image
  395.  
  396. include/image
  397. Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gwenview %f &); fi
  398. View=%view{ascii} identify %f
  399. #View=%view{ascii} asciiview %f
  400.  
  401.  
  402. ### Sound files ###
  403.  
  404. regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
  405. Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
  406.  
  407. regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
  408. Open=mikmod %f
  409. #Open=tracker %f
  410.  
  411. regex/\.([wW][aA][wW]22)$
  412. Open=vplay -s 22 %f
  413.  
  414. regex/\.([mM][pP]3)$
  415. Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
  416. View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
  417.  
  418. regex/\.([oO][gG][gG|aA|vV|xX])$
  419. Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
  420. View=%view{ascii} ogginfo %s
  421.  
  422. regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
  423. Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
  424.  
  425. regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
  426. Open=timidity %f
  427.  
  428. regex/\.([wW][mM][aA])$
  429. Open=mplayer -vo null %f
  430. View=%view{ascii} mplayer -quiet -slave -frames 0 -vo null -ao null -identify %f 2>/dev/null | tail +13 || file %f
  431.  
  432.  
  433. ### Play lists ###
  434.  
  435. regex/\.([mM]3[uU]|[pP][lL][sS])$
  436. Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
  437.  
  438.  
  439. ### Video ###
  440.  
  441. regex/\.([aA][vV][iI])$
  442. Include=video
  443.  
  444. regex/\.([aA][sS][fFxX])$
  445. Include=video
  446.  
  447. regex/\.([dD][iI][vV][xX])$
  448. Include=video
  449.  
  450. regex/\.([mM][kK][vV])$
  451. Include=video
  452.  
  453. regex/\.([mM][oO][vV]|[qQ][tT])$
  454. Include=video
  455.  
  456. regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
  457. Include=video
  458.  
  459. # MPEG-2 TS container + H.264 codec
  460. regex/\.([mM][tT][sS])$
  461. Include=video
  462.  
  463. regex/\.([vV][oO][bB])$
  464. Include=video
  465.  
  466. regex/\.([wW][mM][vV])$
  467. Include=video
  468.  
  469. regex/\.([fF][lL][iIcCvV])$
  470. Include=video
  471.  
  472. regex/\.([oO][gG][mM])$
  473. Include=video
  474.  
  475. regex/\.([rR][aA]?[mM])$
  476. Open=(realplay %f >/dev/null 2>&1 &)
  477.  
  478. include/video
  479. Open=(mplayer %f >/dev/null 2>&1 &)
  480. #Open=(gtv %f >/dev/null 2>&1 &)
  481. #Open=(xanim %f >/dev/null 2>&1 &)
  482.  
  483.  
  484. ### Documents ###
  485.  
  486. # Postscript
  487. type/^PostScript
  488. Open=(gv %f &)
  489. View=%view{ascii} okular %f
  490.  
  491. # PDF
  492. type/^PDF
  493. KOpen=(okular %f >/dev/null 2>&1 &)
  494. #Open=(acroread %f &)
  495. #Open=(ghostview %f &)
  496. View=%view{ascii} okular %f -
  497.  
  498. # The following code very ugly and should not be taken as example.
  499. # It should be cleaned up when the new format of mc.ext is developed.
  500.  
  501. # html
  502. regex/\.([hH][tT][mM][lL]?)$
  503. 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
  504. View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
  505.  
  506. # StarOffice 5.2
  507. shell/.sdw
  508. Open=(libreoffice %f &)
  509.  
  510. # StarOffice 6 and OpenOffice.org formats
  511. regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
  512. Open=(libreoffice %f &)
  513. View=%view{ascii} odt2txt %f
  514.  
  515. # AbiWord
  516. shell/.abw
  517. Open=(abiword %f &)
  518.  
  519. # Microsoft Word Document
  520. regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
  521. Open=(abiword %f >/dev/null 2>&1 &)
  522. View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
  523. type/^Microsoft\ Word
  524. Open=(libreoffice %f >/dev/null 2>&1 &)
  525. View=%view{ascii} libreoffice -t %f || catdoc -w %f || word2x -f text %f - || strings %f
  526.  
  527. # RTF document
  528. regex/\.([rR][tT][fF])$
  529. Open=(libreoffice %f >/dev/null 2>&1 &)
  530.  
  531. # Microsoft Excel Worksheet
  532. regex/\.([xX][lL][sSwW])$
  533. Open=(libreoffice %f >/dev/null 2>&1 &)
  534. View=%view{ascii} xls2csv %f || strings %f
  535. type/^Microsoft\ Excel
  536. Open=(libreoffice %f >/dev/null 2>&1 &)
  537. View=%view{ascii} xls2csv %f || strings %f
  538.  
  539. # Use OpenOffice.org to open any MS Office documents
  540. type/^Microsoft\ Office\ Document
  541. Open=(libreoffice %f &)
  542.  
  543. # Framemaker
  544. type/^FrameMaker
  545. Open=fmclient -f %f
  546.  
  547. # DVI
  548. regex/\.([dD][vV][iI])$
  549. Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
  550. View=%view{ascii} dvi2tty %f
  551.  
  552. # TeX
  553. regex/\.([Tt][Ee][Xx])$
  554. Open=%var{EDITOR:vim} %f
  555.  
  556. # DjVu
  557. regex/\.(djvu|DJVU)$
  558. Open=(okular %f >/dev/null 2>&1 &)
  559.  
  560. ### Miscellaneous ###
  561.  
  562. # Makefile
  563. regex/[Mm]akefile$
  564. Open=make -f %f %{Enter parameters}
  565.  
  566. # Imakefile
  567. shell/Imakefile
  568. Open=xmkmf -a
  569.  
  570. # Makefile.PL (MakeMaker)
  571. regex/^Makefile.(PL|pl)$
  572. Open=%var{PERL:perl} %f
  573.  
  574. # dbf
  575. regex/\.([dD][bB][fF])$
  576. Open=%view{ascii} dbview %f
  577. View=%view{ascii} dbview -b %f
  578.  
  579. # REXX script
  580. regex/\.(rexx?|cmd)$
  581. Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
  582.  
  583. # Disk images for Commodore computers (VIC20, C64, C128)
  584. regex/\.(d64|D64)$
  585. Open=%cd %p#uc1541
  586. View=%view{ascii} c1541 %f -list
  587. Extract=c1541 %f -extract
  588.  
  589. # Glade, a user interface designer for GTK+ and GNOME
  590. regex/\.([Gg][Ll][Aa][Dd][Ee])$
  591. 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
  592.  
  593. # Gettext Catalogs
  594. shell/.mo
  595. View=%view{ascii} msgunfmt %f || cat %f
  596.  
  597. # lyx
  598. regex/\.(lyx|LYX)$
  599. Open=lyx %f
  600. View=%view{ascii} lyxcat %f
  601.  
  602. # torrent
  603. regex/\.([tT][oO][rR][rR][eE][nN][tT])$
  604. View=%view{ascii} transmission-qt -x %f 2>/dev/null
  605.  
  606. ### Plain compressed files ###
  607.  
  608. # ace
  609. regex/\.(ace|ACE)$
  610. Open=%cd %p#uace
  611. View=%view{ascii} unace l %f
  612. Extract=unace x %f
  613.  
  614. # arc
  615. regex/\.(arc|ARC)$
  616. Open=%cd %p#uarc
  617. View=%view{ascii} arc l %f
  618. Extract=arc x %f '*'
  619. Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
  620.  
  621. # zip
  622. type/^([Zz][Ii][Pp])\ archive
  623. Open=%cd %p#uzip
  624. View=%view{ascii} unzip -v %f
  625.  
  626. # zoo
  627. regex/\.([Zz][Oo][Oo])$
  628. Open=%cd %p#uzoo
  629. View=%view{ascii} zoo l %f
  630.  
  631. # gzip
  632. type/^gzip
  633. Open=gzip -dc %f | %var{PAGER:more}
  634. View=%view{ascii} gzip -dc %f 2>/dev/null
  635.  
  636. regex/\.(gz|Z)$
  637. View=%view{ascii} gzip -dc %f 2>/dev/null
  638.  
  639. # bzip2
  640. type/^bzip2
  641. Open=bzip2 -dc %f | %var{PAGER:more}
  642. View=%view{ascii} bzip2 -dc %f 2>/dev/null
  643.  
  644. regex/\.bz2?$
  645. View=%view{ascii} bzip2 -dc %f 2>/dev/null
  646.  
  647. # bzip
  648. type/^bzip
  649. Open=bzip -dc %f | %var{PAGER:more}
  650. View=%view{ascii} bzip -dc %f 2>/dev/null
  651.  
  652. # compress
  653. type/^compress
  654. Open=gzip -dc %f | %var{PAGER:more}
  655. View=%view{ascii} gzip -dc %f 2>/dev/null
  656.  
  657. # lzma
  658. regex/\.lzma$
  659. Open=lzma -dc %f | %var{PAGER:more}
  660. View=%view{ascii} lzma -dc %f 2>/dev/null
  661.  
  662. # xz
  663. regex/\.xz$
  664. Open=xz -dc %f | %var{PAGER:more}
  665. View=%view{ascii} xz -dc %f 2>/dev/null
  666.  
  667.  
  668. ### Default ###
  669.  
  670. # Default target for anything not described above
  671. default/*
  672. Open=
  673. View=
  674.  
  675.  
  676. ### EOF ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement