mc.ext.in 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  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. # Also provided to external application as MC_EXT_BASENAME
  45. # global variable
  46. # %f -> name of the current file. Unlike %p, if file is located on a
  47. # non-local virtual filesystem, i.e. either tarfs or ftpfs,
  48. # then the file will be temporarily copied into a local directory
  49. # and %f will be the full path to this local temporal file.
  50. # If you don't want to get a local copy and want to get the
  51. # virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
  52. # use %d/%p instead of %f.
  53. # Also provided to external application as MC_EXT_FILENAME
  54. # global variable
  55. # %d -> name of the current directory (pwd, without trailing slash)
  56. # Also provided to external application as MC_EXT_CURRENTDIR
  57. # global variable
  58. # %s -> "selected files", i.e. space separated list of tagged files if any
  59. # or name of the current file.
  60. # Also provided to external application as MC_EXT_SELECTED
  61. # global variable
  62. # %t -> list of tagged files
  63. # Also provided to external application as MC_EXT_ONLYTAGGED
  64. # global variable
  65. # %u -> list of tagged files (they'll be untaged after the command)
  66. #
  67. # (If these 6 letters are in uppercase, they refer to the other panel.
  68. # But you shouldn't have to use it in this file.)
  69. #
  70. #
  71. # %cd -> the rest is a path mc should change into (cd won't work, since it's
  72. # a child process). %cd handles even vfs names.
  73. #
  74. # %view -> the command you type will be piped into mc's internal file viewer
  75. # if you type only the %view and no command, viewer will load %f file
  76. # instead (i.e. no piping, so it is different to %view cat %f)
  77. # %view may be directly followed by {} with a list of any of
  78. # ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
  79. # text using backspace for bold and underscore) and unform
  80. # (no highlighting for nroff sequences) separated by commas.
  81. #
  82. # %var -> You use it like this: %var{VAR:default}. This macro will expand
  83. # to the value of the VAR variable in the environment if it's set
  84. # otherwise the value in default will be used. This is similar to
  85. # the Bourne shell ${VAR-default} construct.
  86. #
  87. # Rules are applied from top to bottom, thus the order is important.
  88. # If some actions are missing, search continues as if this target didn't
  89. # match (i.e. if a file matches the first and second entry and View action
  90. # is missing in the first one, then on pressing F3 the View action from
  91. # the second entry will be used. default should catch all the actions.
  92. #
  93. # Any new entries you develop for you are always welcome if they are
  94. # useful on more than one system. You can post your modifications
  95. # as tickets at www.midnight-commander.org
  96. ### Changes ###
  97. #
  98. # Reorganization: 2012-03-07 Slava Zanko <slavazanko@gmail.com>
  99. ### GIT Repo ###
  100. # gitfs changeset
  101. regex/^\[git\]
  102. Open=%cd %p/changesetfs://
  103. View=%cd %p/patchsetfs://
  104. ### Archives ###
  105. # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
  106. regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk|\.gem$
  107. Open=%cd %p/utar://
  108. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz
  109. regex/\.tar\.bz$
  110. # Open=%cd %p/utar://
  111. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip
  112. regex/\.t(ar\.bz2|bz2?|b2)$
  113. Open=%cd %p/utar://
  114. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip2
  115. # .tar.lzma, .tlz
  116. regex/\.t(ar\.lzma|lz)$
  117. Open=%cd %p/utar://
  118. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzma
  119. # .tar.xz, .txz
  120. regex/\.t(ar\.xz|xz)$
  121. Open=%cd %p/utar://
  122. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
  123. # .tar.F - used in QNX
  124. regex/\.tar\.F$
  125. # Open=%cd %p/utar://
  126. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F
  127. # .qpr/.qpk - QNX Neutrino package installer files
  128. regex/\.(qp[rk])$
  129. Open=%cd %p/utar://
  130. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr
  131. # tar
  132. regex/\.(tar|TAR)$
  133. Open=%cd %p/utar://
  134. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar
  135. # lha
  136. type/^LHa\ .*archive
  137. Open=%cd %p/ulha://
  138. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha
  139. # arj
  140. regex/\.a(rj|[0-9][0-9])$
  141. Open=%cd %p/uarj://
  142. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj
  143. # cab
  144. regex/\.([cC][aA][bB])$
  145. Open=%cd %p/ucab://
  146. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab
  147. # ha
  148. regex/\.([Hh][Aa])$
  149. Open=%cd %p/uha://
  150. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha
  151. # rar
  152. regex/\.[rR]([aA][rR]|[0-9][0-9])$
  153. Open=%cd %p/urar://
  154. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar
  155. # ALZip
  156. regex/\.(alz|ALZ)$
  157. Open=%cd %p/ualz://
  158. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz
  159. # cpio
  160. shell/.cpio.Z
  161. Open=%cd %p/ucpio://
  162. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z
  163. shell/.cpio.xz
  164. Open=%cd %p/ucpio://
  165. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz
  166. shell/.cpio.gz
  167. Open=%cd %p/ucpio://
  168. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz
  169. shell/.cpio
  170. Open=%cd %p/ucpio://
  171. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio
  172. # 7zip archives (they are not man pages)
  173. regex/\.(7z|7Z)$
  174. Open=%cd %p/u7z://
  175. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z
  176. # patch
  177. regex/\.(diff|patch)(\.bz2)$
  178. Open=%cd %p/patchfs://
  179. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  180. regex/\.(diff|patch)(\.(gz|Z))$
  181. Open=%cd %p/patchfs://
  182. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  183. # ls-lR
  184. regex/(^|\.)ls-?lR(\.gz|Z|bz2)$
  185. Open=%cd %p/lslR://
  186. # trpm
  187. regex/\.trpm$
  188. Open=%cd %p/trpm://
  189. View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm
  190. # RPM packages (SuSE uses *.spm for source packages)
  191. regex/\.(src\.rpm|spm)$
  192. Open=%cd %p/rpm://
  193. View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm
  194. regex/\.rpm$
  195. Open=%cd %p/rpm://
  196. View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm
  197. # deb
  198. regex/\.u?deb$
  199. Open=%cd %p/deb://
  200. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb
  201. # dpkg
  202. shell/.debd
  203. Open=%cd %p/debd://
  204. View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd
  205. # apt
  206. shell/.deba
  207. Open=%cd %p/deba://
  208. View=%view{ascii} @EXTHELPERSDIR@/package.sh view deba
  209. # ISO9660
  210. regex/\.([iI][sS][oO])$
  211. Open=%cd %p/iso9660://
  212. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660
  213. regex/\.(diff|patch)$
  214. Open=%cd %p/patchfs://
  215. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat
  216. # ar library
  217. regex/\.s?a$
  218. Open=%cd %p/uar://
  219. #Open=%view{ascii} ar tv %f
  220. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar
  221. # gplib
  222. regex/\.([Ll][Ii][Bb])$
  223. Open=%cd %p/ulib://
  224. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib
  225. # Mailboxes
  226. type/^ASCII\ mail\ text
  227. Open=%cd %p/mailfs://
  228. ### Sources ###
  229. # C
  230. shell/.c
  231. Include=editor
  232. # Fortran
  233. shell/.f
  234. Include=editor
  235. # Header
  236. regex/\.(h|hpp)$
  237. Include=editor
  238. # Asm
  239. shell/.s
  240. Include=editor
  241. # C++
  242. regex/\.(C|cc|cpp)$
  243. Include=editor
  244. include/editor
  245. Open=%var{EDITOR:vi} %f
  246. # .so libraries
  247. regex/\.(so|so\.[0-9\.]*)$
  248. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so
  249. # Object
  250. type/^ELF
  251. #Open=%var{PAGER:more} %f
  252. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf
  253. ### Documentation ###
  254. # Texinfo
  255. #regex/\.(te?xi|texinfo)$
  256. # GNU Info page
  257. type/^Info\ text
  258. Open=@EXTHELPERSDIR@/text.sh open info
  259. shell/.info
  260. Open=@EXTHELPERSDIR@/text.sh open info
  261. # Exception: .3gp are video files not manual pages
  262. regex/\.(3[gG][pP])$
  263. Include=video
  264. # Manual page
  265. regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
  266. Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more}
  267. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more}
  268. # Perl pod page
  269. shell/.pod
  270. Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more}
  271. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more}
  272. # Troff with me macros.
  273. # Exception - "read.me" is not a nroff file.
  274. shell/read.me
  275. Open=
  276. View=
  277. shell/.me
  278. Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more}
  279. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more}
  280. # Troff with ms macros.
  281. shell/.ms
  282. Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more}
  283. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more}
  284. # Manual page - compressed
  285. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
  286. Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more}
  287. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more}
  288. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
  289. Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more}
  290. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more}
  291. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
  292. Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more}
  293. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more}
  294. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$
  295. Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more}
  296. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more}
  297. regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
  298. Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more}
  299. View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more}
  300. # CHM
  301. regex/\.(chm|CHM)$
  302. Open=@EXTHELPERSDIR@/text.sh open chm
  303. ### Images ###
  304. type/^GIF
  305. Include=image
  306. type/^JPEG
  307. View=%view{ascii} @EXTHELPERSDIR@/image.sh view jpeg
  308. Include=image
  309. type/^PC\ bitmap
  310. Include=image
  311. type/^PNG
  312. Include=image
  313. type/^TIFF
  314. Include=image
  315. type/^PBM
  316. Include=image
  317. type/^PGM
  318. Include=image
  319. type/^PPM
  320. Include=image
  321. type/^Netpbm
  322. Include=image
  323. shell/.xcf
  324. Open=@EXTHELPERSDIR@/image.sh open xcf
  325. shell/.xbm
  326. Open=@EXTHELPERSDIR@/image.sh open xbm
  327. shell/.xpm
  328. Include=image
  329. View=@EXTHELPERSDIR@/image.sh view xpm %f
  330. shell/.ico
  331. Include=image
  332. include/image
  333. Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS
  334. View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS
  335. ### Sound files ###
  336. regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
  337. Open=@EXTHELPERSDIR@/sound.sh open common
  338. regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
  339. Open=@EXTHELPERSDIR@/sound.sh open mod
  340. regex/\.([wW][aA][wW]22)$
  341. Open=@EXTHELPERSDIR@/sound.sh open wav22
  342. regex/\.([mM][pP]3)$
  343. Open=@EXTHELPERSDIR@/sound.sh open mp3
  344. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3
  345. regex/\.([oO][gG][gG|aA|vV|xX])$
  346. Open=@EXTHELPERSDIR@/sound.sh open ogg
  347. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg
  348. regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
  349. Open=@EXTHELPERSDIR@/sound.sh open common
  350. regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
  351. Open=@EXTHELPERSDIR@/sound.sh open midi
  352. regex/\.([wW][mM][aA])$
  353. Open=@EXTHELPERSDIR@/sound.sh open wma
  354. View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma
  355. ### Play lists ###
  356. regex/\.([mM]3[uU]|[pP][lL][sS])$
  357. Open=@EXTHELPERSDIR@/sound.sh open playlist
  358. ### Video ###
  359. regex/\.([aA][vV][iI])$
  360. Include=video
  361. regex/\.([aA][sS][fFxX])$
  362. Include=video
  363. regex/\.([dD][iI][vV][xX])$
  364. Include=video
  365. regex/\.([mM][kK][vV])$
  366. Include=video
  367. regex/\.([mM][oO][vV]|[qQ][tT])$
  368. Include=video
  369. regex/\.([mM][pP]4|[mM]4[vV]|[mM][pP][eE]?[gG])$
  370. Include=video
  371. # MPEG-2 TS container + H.264 codec
  372. regex/\.([mM][tT][sS])$
  373. Include=video
  374. regex/\.([tT][sS])$
  375. Include=video
  376. regex/\.([vV][oO][bB])$
  377. Include=video
  378. regex/\.([wW][mM][vV])$
  379. Include=video
  380. regex/\.([fF][lL][iIcCvV])$
  381. Include=video
  382. regex/\.([oO][gG][mM])$
  383. Include=video
  384. regex/\.([rR][aA]?[mM])$
  385. Open=@EXTHELPERSDIR@/video.sh open ram
  386. # WebM
  387. regex/\.([wW][eE][bB][mM])$
  388. Include=video
  389. type/WebM
  390. Include=video
  391. include/video
  392. Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS
  393. View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS
  394. ### Documents ###
  395. # Postscript
  396. type/^PostScript
  397. Open=@EXTHELPERSDIR@/doc.sh open ps
  398. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps
  399. # PDF
  400. type/^PDF
  401. Open=@EXTHELPERSDIR@/doc.sh open pdf
  402. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf
  403. # html
  404. regex/\.([hH][tT][mM][lL]?)$
  405. Open=@EXTHELPERSDIR@/web.sh open html
  406. View=%view{ascii} @EXTHELPERSDIR@/web.sh view html
  407. # StarOffice 5.2
  408. shell/.sdw
  409. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  410. # StarOffice 6 and OpenOffice.org formats
  411. regex/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
  412. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  413. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt
  414. # AbiWord
  415. shell/.abw
  416. Open=@EXTHELPERSDIR@/doc.sh open abw
  417. # Microsoft Word Document
  418. regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
  419. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  420. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  421. type/^Microsoft\ Word
  422. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  423. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc
  424. # RTF document
  425. regex/\.([rR][tT][fF])$
  426. Open=@EXTHELPERSDIR@/doc.sh open msdoc
  427. # Microsoft Excel Worksheet
  428. regex/\.([xX][lL][sSwW])$
  429. Open=@EXTHELPERSDIR@/doc.sh open msxls
  430. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  431. type/^Microsoft\ Excel
  432. Open=@EXTHELPERSDIR@/doc.sh open msxls
  433. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls
  434. # Use OpenOffice.org to open any MS Office documents
  435. type/^Microsoft\ Office\ Document
  436. Open=@EXTHELPERSDIR@/doc.sh open ooffice
  437. # Framemaker
  438. type/^FrameMaker
  439. Open=@EXTHELPERSDIR@/doc.sh open framemaker
  440. # DVI
  441. regex/\.([dD][vV][iI])$
  442. Open=@EXTHELPERSDIR@/doc.sh open dvi
  443. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi
  444. # TeX
  445. regex/\.([Tt][Ee][Xx])$
  446. Include=editor
  447. # DjVu
  448. regex/\.(djvu?|DJVU?)$
  449. Open=@EXTHELPERSDIR@/doc.sh open djvu
  450. View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu
  451. ### Miscellaneous ###
  452. # Makefile
  453. regex/[Mm]akefile$
  454. Open=make -f %f %{Enter parameters}
  455. # Imakefile
  456. shell/Imakefile
  457. Open=@EXTHELPERSDIR@/misc.sh open imakefile
  458. # Makefile.PL (MakeMaker)
  459. regex/^Makefile.(PL|pl)$
  460. Open=%var{PERL:perl} %f
  461. # dbf
  462. regex/\.([dD][bB][fF])$
  463. Open=%view{ascii} @EXTHELPERSDIR@/misc.sh open dbf
  464. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf
  465. # REXX script
  466. regex/\.(rexx?|cmd)$
  467. Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
  468. # Disk images for Commodore computers (VIC20, C64, C128)
  469. regex/\.(d64|D64)$
  470. Open=%cd %p/uc1541://
  471. View=%view{ascii} c1541 %f -list
  472. Extract=c1541 %f -extract
  473. # Glade, a user interface designer for GTK+ and GNOME
  474. regex/\.([Gg][Ll][Aa][Dd][Ee])$
  475. Open=@EXTHELPERSDIR@/misc.sh open glade
  476. # Gettext Catalogs
  477. shell/.mo
  478. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo
  479. # lyx
  480. regex/\.(lyx|LYX)$
  481. Open=@EXTHELPERSDIR@/misc.sh open lyx
  482. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx
  483. # torrent
  484. regex/\.([tT][oO][rR][rR][eE][nN][tT])$
  485. View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent
  486. ### Plain compressed files ###
  487. # ace
  488. regex/\.(ace|ACE)$
  489. Open=%cd %p/uace://
  490. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace
  491. Extract=unace x %f
  492. # arc
  493. regex/\.(arc|ARC)$
  494. Open=%cd %p/uarc://
  495. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc
  496. Extract=arc x %f '*'
  497. Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
  498. # zip
  499. type/^([Zz][Ii][Pp])\ archive
  500. Open=%cd %p/uzip://
  501. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip
  502. # zoo
  503. regex/\.([Zz][Oo][Oo])$
  504. Open=%cd %p/uzoo://
  505. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo
  506. # gzip
  507. type/^gzip
  508. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  509. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  510. regex/\.(gz|Z)$
  511. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  512. # bzip2
  513. type/^bzip2
  514. Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more}
  515. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  516. regex/\.bz2?$
  517. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2
  518. # bzip
  519. type/^bzip
  520. Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more}
  521. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip
  522. # compress
  523. type/^compress
  524. Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more}
  525. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz
  526. # lzma
  527. regex/\.lzma$
  528. Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more}
  529. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma
  530. # xz
  531. regex/\.xz$
  532. Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more}
  533. View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz
  534. ### Default ###
  535. # Default target for anything not described above
  536. default/*
  537. Open=
  538. View=
  539. ### EOF ###