Advertisement
Guest User

Eddy_Em

a guest
Jan 24th, 2012
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.30 KB | None | 0 0
  1. 9c9
  2. < # keyword can be:
  3. ---
  4. > # keyword can be:
  5. 11c11
  6. < # shell (desc is, when starting with a dot, any extension (no wildcars),
  7. ---
  8. > # shell (desc is, when starting with a dot, any extension (no wildcars),
  9. 31c31
  10. < # keyword=commandNL (with no spaces around =), where keyword should be:
  11. ---
  12. > # keyword=commandNL (with no spaces around =), where keyword should be:
  13. 33c33
  14. < # Open (if the user presses Enter or doubleclicks it),
  15. ---
  16. > # Open (if the user presses Enter or doubleclicks it),
  17. 44,45c44,45
  18. < # %f -> name of the current file. Unlike %p, if file is located on a
  19. < # non-local virtual filesystem, i.e. either tarfs or ftpfs,
  20. ---
  21. > # %f -> name of the current file. Unlike %p, if file is located on a
  22. > # non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,
  23. 61c61
  24. < # %cd -> the rest is a path mc should change into (cd won't work, since it's
  25. ---
  26. > # '%cd -> the rest is a path mc should change into (cd won't work, since it's
  27. 84,85c84,85
  28. < # useful on more than one system. You can post your modifications
  29. < # as tickets at www.midnight-commander.org
  30. ---
  31. > # useful on more than one system. You can send your modifications
  32. > # by e-mail to mc-devel@gnome.org
  33. 97c97
  34. < #
  35. ---
  36. > #
  37. 103c103
  38. < #
  39. ---
  40. > #
  41. 107,111c107,125
  42. < ### GIT Repo ###
  43. < # gitfs changeset
  44. < regex/^\[git\]
  45. < Open=%cd %p/changesetfs://
  46. < View=%cd %p/patchsetfs://
  47. ---
  48. > regex/\.descr$
  49. > View=%view{ascii} cat %f | enconv
  50. > Open=cat %f | enconv; echo ""
  51. >
  52. > regex/\.chm$
  53. > Open=FBReader %f 2>&1 1>/dev/null &
  54. > regex/\.fb2$
  55. > Open=FBReader %f 2>&1 1>/dev/null &
  56. >
  57. > regex/\.ly$
  58. > Open=lilypond %f
  59. >
  60. > shell/.3gp
  61. > Open=mplayer %f >/dev/null 2>&1 &
  62. >
  63. > regex/\.[sS][fF]2
  64. > View=%view{ascii} sf2text %f
  65. > Open=sfxload %f
  66. >
  67. 121c135
  68. < # Open=%cd %p/utar://
  69. ---
  70. > Open=%cd %p/utar://
  71. 124c138
  72. < regex/\.t(ar\.bz2|bz2?|b2)$
  73. ---
  74. > regex/\.t(ar\.bz2|bz|b2)$
  75. 133,137d146
  76. < # .tar.xz, .txz
  77. < regex/\.t(ar\.xz|xz)$
  78. < Open=%cd %p/utar://
  79. < View=%view{ascii} xz -dc %f 2>/dev/null | tar tvvf -
  80. <
  81. 143c152
  82. < # .qpr/.qpk - QNX Neutrino package installer files
  83. ---
  84. > # .qpr/.qpk - QNX Neutrino package installer files
  85. 151c160
  86. < View=%view{ascii} tar tvvf - < %f
  87. ---
  88. > View=%view{ascii} tar tvvf %f
  89. 163,167d171
  90. < # cab
  91. < regex/\.([cC][aA][bB])$
  92. < Open=%cd %p/ucab://
  93. < View=%view{ascii} cabextract -l %f
  94. <
  95. 176c180
  96. < View=%view{ascii} rar v -c- %f
  97. ---
  98. > View=%view{ascii} unrar v -c- %f
  99. 217c221
  100. < View=%view{ascii} file %f && nm -C %f
  101. ---
  102. > View=%view{ascii} file %f && nm %f
  103. 226c230
  104. < Open=%cd %p/rpm://
  105. ---
  106. > Open=%cd %p/srpm://
  107. 238,245c242,247
  108. < # dpkg
  109. < shell/.debd
  110. < Open=%cd %p/debd://
  111. < View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
  112. < # apt
  113. < shell/.deba
  114. < Open=%cd %p/deba://
  115. < View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
  116. ---
  117. > regex/\.dvd$
  118. > Open=mplayer dvdnav/ -dvd-device %f
  119. >
  120. > regex/\.m2ts$
  121. > Open=mplayer %f
  122. >
  123. 248,249c250,252
  124. < regex/\.([iI][sS][oO])$
  125. < Open=%cd %p/iso9660://
  126. ---
  127. > regex/\.iso$
  128. > Open=mplayer dvdnav/ -dvd-device %f
  129. > # Open=%cd %p/iso9660://
  130. 253c256
  131. < regex/\.(7z|7Z)$
  132. ---
  133. > shell/.7z
  134. 262a266,274
  135. > shell/CMakeLists.txt
  136. > Include=sources
  137. >
  138. > regex/\.(glade|ui)
  139. > Open=glade-3 $(echo %d/%p|iconv -f koi8-r -t utf-8) 1>&2 2>/dev/null &
  140. >
  141. > # JavaScript
  142. > shell/.js
  143. > Include=sources
  144. 266c278,282
  145. < Include=editor
  146. ---
  147. > Include=sources
  148. >
  149. > # CUDA
  150. > shell/.cu
  151. > Include=sources
  152. 270,271c286,287
  153. < Include=editor
  154. <
  155. ---
  156. > Include=sources
  157. >
  158. 274c290,296
  159. < Include=editor
  160. ---
  161. > Include=sources
  162. > # Open=%var{EDITOR:vi} %f
  163. >
  164. > # Object
  165. > type/^ELF
  166. > #Open=%var{PAGER:more} %f
  167. > View=%view{ascii} file %f && nm %f
  168. 278c300
  169. < Include=editor
  170. ---
  171. > Open=%var{EDITOR:vi} %f
  172. 282c304
  173. < Include=editor
  174. ---
  175. > Include=sources
  176. 284,285c306,312
  177. < include/editor
  178. < Open=%var{EDITOR:vi} %f
  179. ---
  180. > # autoconf/automake
  181. > regex/\.(ac|am)$
  182. > Include=sources
  183. >
  184. > # gettext pot-files
  185. > shell/.po
  186. > Open=poedit %f 2>&1 >/dev/null &
  187. 287,294c314,315
  188. < # .so libraries
  189. < regex/\.(so|so\.[0-9\.]*)$
  190. < View=%view{ascii} file %f && nm -C -D %f
  191. <
  192. < # Object
  193. < type/^ELF
  194. < #Open=%var{PAGER:more} %f
  195. < View=%view{ascii} file %f && nm -C %f
  196. ---
  197. > include/sources
  198. > Open=geany $(echo %d/%p|iconv -f koi8-r -t utf-8) 1>&2 2>/dev/null &
  199. 308,311d328
  200. < # Exception: .3gp are video files not manual pages
  201. < regex/\.(3[gG][pP])$
  202. < Include=video
  203. <
  204. 312a330,333
  205. > # Exception - .so libraries are not manual pages
  206. > regex/\.(so|so\.[0-9\.]*)$
  207. > View=%view{ascii} file %f && nm %f
  208. >
  209. 314,315c335,336
  210. < Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  211. < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac
  212. ---
  213. > Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff -man %f ;; esac | %var{PAGER:more}
  214. > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff -man %f ;; esac
  215. 319,320c340,341
  216. < Open=pod2man %f | nroff -c -Tlatin1 -mandoc | %var{PAGER:more}
  217. < View=%view{ascii,nroff} pod2man %f | nroff -c -Tlatin1 -mandoc
  218. ---
  219. > Open=pod2man %f | nroff -man | %var{PAGER:more}
  220. > View=%view{ascii,nroff} pod2man %f | nroff -man
  221. 329,330c350,351
  222. < Open=nroff -c -Tlatin1 -me %f | %var{PAGER:more}
  223. < View=%view{ascii,nroff} nroff -c -Tlatin1 -me %f
  224. ---
  225. > Open=nroff -me %f | %var{PAGER:more}
  226. > View=%view{ascii,nroff} nroff -me %f
  227. 334,335c355,356
  228. < Open=nroff -c -Tlatin1 -ms %f | %var{PAGER:more}
  229. < View=%view{ascii,nroff} nroff -c -Tlatin1 -ms %f
  230. ---
  231. > Open=nroff -ms %f | %var{PAGER:more}
  232. > View=%view{ascii,nroff} nroff -ms %f
  233. 339,340c360,361
  234. < Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  235. < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  236. ---
  237. > Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -man ;; esac | %var{PAGER:more}
  238. > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -man ;; esac
  239. 343,344c364,365
  240. < Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  241. < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  242. ---
  243. > Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -man ;; esac | %var{PAGER:more}
  244. > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -man ;; esac
  245. 347,348c368,369
  246. < Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  247. < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  248. ---
  249. > Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -man ;; esac | %var{PAGER:more}
  250. > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -man ;; esac
  251. 351,352c372,373
  252. < Open=case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  253. < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  254. ---
  255. > Open=case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -man ;; esac | %var{PAGER:more}
  256. > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -man ;; esac
  257. 354,360d374
  258. < regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
  259. < Open=case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
  260. < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
  261. <
  262. < # CHM
  263. < regex/\.(chm|CHM)$
  264. < Open=which kchmviewer > /dev/null 2>&1 && (kchmviewer %f &) || (xchm %f &)
  265. 368d381
  266. < View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f 2>/dev/null
  267. 402,404d414
  268. < shell/.ico
  269. < Include=image
  270. <
  271. 406,407c416,417
  272. < Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
  273. < View=%view{ascii} identify %f
  274. ---
  275. > Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (feh -dFZ -Sname --start-at ./%p 2>&1 1>/dev/null &); fi
  276. > View=%view{ascii} identify %f && exiftool -p '$dateTimeOriginal' -q -s -Comment -q %f | enconv
  277. 413,414c423,427
  278. < regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
  279. < Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
  280. ---
  281. > regex/\.([wW][aA][vV]|[sS][nN][dD]|[aA][uU])$
  282. > Open=if [ "$DISPLAY" = "" ]; then play %f; else xdg-open %f 2>/dev/null; fi
  283. >
  284. > regex/\.([vV][oO][cC]|[sS][mM][pP]|[aA][iI][fF][fF])$
  285. > Open=if [ "$DISPLAY" = "" ]; then play %f; else (audacious %f >/dev/null &); fi
  286. 424,425c437,438
  287. < Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
  288. < View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
  289. ---
  290. > Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else audacious %f 2>/dev/null &; fi
  291. > View=%view{ascii} mpg321 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p' | enconv
  292. 427,428c440,441
  293. < regex/\.([oO][gG][gG|aA|vV|xX])$
  294. < Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
  295. ---
  296. > regex/\.([oO][gG][gG])$
  297. > Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else xdg-open %f 2>/dev/null; fi
  298. 431,433d443
  299. < regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
  300. < Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
  301. <
  302. 435c445
  303. < Open=timidity %f
  304. ---
  305. > Open=aplaymidi --port 17:0 %f
  306. 438c448
  307. < Open=mplayer -vo null %f
  308. ---
  309. > Open=if [ "$DISPLAY" = "" ]; then mplayer -vo null %f; else (mplayer %f 2>/dev/null); fi
  310. 441d450
  311. <
  312. 445c454
  313. < Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
  314. ---
  315. > Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else xdg-open %f 2>/dev/null; fi
  316. 452a462,465
  317. > regex/\.([oO][gG][gG])$
  318. > Include=video
  319. >
  320. >
  321. 457c470
  322. < Include=video
  323. ---
  324. > Open=(mplayer %f >/dev/null 2>&1 &)
  325. 468,471d480
  326. < # MPEG-2 TS container + H.264 codec
  327. < regex/\.([mM][tT][sS])$
  328. < Include=video
  329. <
  330. 485c494,501
  331. < Open=(realplay %f >/dev/null 2>&1 &)
  332. ---
  333. > Include=video
  334. >
  335. >
  336. > regex/\.(3[gG][pP])$
  337. > Include=video
  338. >
  339. > shell/.m2ts
  340. > Include=video
  341. 488a505
  342. > View=%view{ascii} aviinfo %f 2>/dev/null
  343. 497c514
  344. < Open=(gv %f &)
  345. ---
  346. > Open=okular %f 1>/dev/null 2>&1 &
  347. 502c519,520
  348. < Open=(xpdf %f &)
  349. ---
  350. > Open=okular %f 1>&2 2>/dev/null &
  351. > #Open=xpdf -fullscreen %f 2>/dev/null &
  352. 505c523,527
  353. < View=%view{ascii} pdftotext %f -
  354. ---
  355. > View=%view{ascii} pdftotext %f - | enconv
  356. >
  357. > regex/\.([dD][jJ][vV][uU]?)$
  358. > Open=djview %f 1>/dev/null 2>&1 &
  359. >
  360. 511,513c533,535
  361. < regex/\.([hH][tT][mM][lL]?)$
  362. < 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
  363. < View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
  364. ---
  365. > regex/\.([hH][tT][mM][lL]?|js)$
  366. > Open=bluefish %f >&2 2>/dev/null &
  367. > View=%view{ascii} lynx -dump -assume_charset koi8-r -force_html %f
  368. 521,523c543,546
  369. < Open=(ooffice %f &)
  370. < View=%view{ascii} odt2txt %f
  371. <
  372. ---
  373. > Open=soffice %f 2>/dev/null
  374. > View=%view{ascii} unzip -p %f content.xml | o3read
  375. > # View=%view{ascii} o3read %f 2>/dev/null &
  376. >
  377. 526c549
  378. < Open=(abiword %f &)
  379. ---
  380. > Open=xdg-open %f 2>/dev/null
  381. 530,531c553,554
  382. < Open=(abiword %f >/dev/null 2>&1 &)
  383. < View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
  384. ---
  385. > Open=soffice %f 2>/dev/null
  386. > View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
  387. 533,534c556,557
  388. < Open=(abiword %f >/dev/null 2>&1 &)
  389. < View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
  390. ---
  391. > Open=soffice %f 2>/dev/null
  392. > View=%view{ascii} catdoc -w %f
  393. 538c561,562
  394. < Open=(abiword %f >/dev/null 2>&1 &)
  395. ---
  396. > Open=soffice %f 2>/dev/null
  397. > View=%view{ascii} catdoc -w %f
  398. 542c566
  399. < Open=(gnumeric %f >/dev/null 2>&1 &)
  400. ---
  401. > Open=soffice %f 2>/dev/null
  402. 545c569
  403. < Open=(gnumeric %f >/dev/null 2>&1 &)
  404. ---
  405. > Open=soffice %f 2>/dev/null
  406. 548c572
  407. < # Use OpenOffice.org to open any MS Office documents
  408. ---
  409. > # MS Office documents
  410. 550c574
  411. < Open=(ooffice %f &)
  412. ---
  413. > Open=soffice %f 2>/dev/null
  414. 558c582
  415. < Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
  416. ---
  417. > Open=xdvi %f 1>/dev/null 2>&1 &
  418. 563c587,593
  419. < Include=editor
  420. ---
  421. > Open=kile %f 2>/dev/null &
  422. >
  423. > regex/\.kilepr$
  424. > Open=kile %f 2>/dev/null &
  425. >
  426. > regex/\.([Tt][Xx][Tt])$
  427. > Open=medit %f 2>&1 1>/dev/null &
  428. 565,567d594
  429. < # DjVu
  430. < regex/\.(djvu|DJVU)$
  431. < Open=djview %f &
  432. 592,613d618
  433. < # Disk images for Commodore computers (VIC20, C64, C128)
  434. < regex/\.(d64|D64)$
  435. < Open=%cd %p/uc1541://
  436. < View=%view{ascii} c1541 %f -list
  437. < Extract=c1541 %f -extract
  438. <
  439. < # Glade, a user interface designer for GTK+ and GNOME
  440. < regex/\.([Gg][Ll][Aa][Dd][Ee])$
  441. < 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
  442. <
  443. < # Gettext Catalogs
  444. < shell/.mo
  445. < View=%view{ascii} msgunfmt %f || cat %f
  446. <
  447. < # lyx
  448. < regex/\.(lyx|LYX)$
  449. < Open=lyx %f
  450. < View=%view{ascii} lyxcat %f
  451. <
  452. < # torrent
  453. < regex/\.([tT][oO][rR][rR][eE][nN][tT])$
  454. < View=%view{ascii} ctorrent -x %f 2>/dev/null
  455. 617,629d621
  456. < # ace
  457. < regex/\.(ace|ACE)$
  458. < Open=%cd %p/uace://
  459. < View=%view{ascii} unace l %f
  460. < Extract=unace x %f
  461. <
  462. < # arc
  463. < regex/\.(arc|ARC)$
  464. < Open=%cd %p/uarc://
  465. < View=%view{ascii} arc l %f
  466. < Extract=arc x %f '*'
  467. < Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
  468. <
  469. 639c631
  470. <
  471. ---
  472. >
  473. 645c637
  474. < regex/\.(gz|Z)$
  475. ---
  476. > regex/\.(gz|Z)?$
  477. 671,674d662
  478. < # xz
  479. < regex/\.xz$
  480. < Open=xz -dc %f | %var{PAGER:more}
  481. < View=%view{ascii} xz -dc %f 2>/dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement