Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 9c9
- < # keyword can be:
- ---
- > # keyword can be:
- 11c11
- < # shell (desc is, when starting with a dot, any extension (no wildcars),
- ---
- > # shell (desc is, when starting with a dot, any extension (no wildcars),
- 31c31
- < # keyword=commandNL (with no spaces around =), where keyword should be:
- ---
- > # keyword=commandNL (with no spaces around =), where keyword should be:
- 33c33
- < # Open (if the user presses Enter or doubleclicks it),
- ---
- > # Open (if the user presses Enter or doubleclicks it),
- 44,45c44,45
- < # %f -> name of the current file. Unlike %p, if file is located on a
- < # non-local virtual filesystem, i.e. either tarfs or ftpfs,
- ---
- > # %f -> name of the current file. Unlike %p, if file is located on a
- > # non-local virtual filesystem, i.e. either tarfs, mcfs or ftpfs,
- 61c61
- < # %cd -> the rest is a path mc should change into (cd won't work, since it's
- ---
- > # '%cd -> the rest is a path mc should change into (cd won't work, since it's
- 84,85c84,85
- < # useful on more than one system. You can post your modifications
- < # as tickets at www.midnight-commander.org
- ---
- > # useful on more than one system. You can send your modifications
- > # by e-mail to mc-devel@gnome.org
- 97c97
- < #
- ---
- > #
- 103c103
- < #
- ---
- > #
- 107,111c107,125
- < ### GIT Repo ###
- < # gitfs changeset
- < regex/^\[git\]
- < Open=%cd %p/changesetfs://
- < View=%cd %p/patchsetfs://
- ---
- > regex/\.descr$
- > View=%view{ascii} cat %f | enconv
- > Open=cat %f | enconv; echo ""
- >
- > regex/\.chm$
- > Open=FBReader %f 2>&1 1>/dev/null &
- > regex/\.fb2$
- > Open=FBReader %f 2>&1 1>/dev/null &
- >
- > regex/\.ly$
- > Open=lilypond %f
- >
- > shell/.3gp
- > Open=mplayer %f >/dev/null 2>&1 &
- >
- > regex/\.[sS][fF]2
- > View=%view{ascii} sf2text %f
- > Open=sfxload %f
- >
- 121c135
- < # Open=%cd %p/utar://
- ---
- > Open=%cd %p/utar://
- 124c138
- < regex/\.t(ar\.bz2|bz2?|b2)$
- ---
- > regex/\.t(ar\.bz2|bz|b2)$
- 133,137d146
- < # .tar.xz, .txz
- < regex/\.t(ar\.xz|xz)$
- < Open=%cd %p/utar://
- < View=%view{ascii} xz -dc %f 2>/dev/null | tar tvvf -
- <
- 143c152
- < # .qpr/.qpk - QNX Neutrino package installer files
- ---
- > # .qpr/.qpk - QNX Neutrino package installer files
- 151c160
- < View=%view{ascii} tar tvvf - < %f
- ---
- > View=%view{ascii} tar tvvf %f
- 163,167d171
- < # cab
- < regex/\.([cC][aA][bB])$
- < Open=%cd %p/ucab://
- < View=%view{ascii} cabextract -l %f
- <
- 176c180
- < View=%view{ascii} rar v -c- %f
- ---
- > View=%view{ascii} unrar v -c- %f
- 217c221
- < View=%view{ascii} file %f && nm -C %f
- ---
- > View=%view{ascii} file %f && nm %f
- 226c230
- < Open=%cd %p/rpm://
- ---
- > Open=%cd %p/srpm://
- 238,245c242,247
- < # dpkg
- < shell/.debd
- < Open=%cd %p/debd://
- < View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
- < # apt
- < shell/.deba
- < Open=%cd %p/deba://
- < View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
- ---
- > regex/\.dvd$
- > Open=mplayer dvdnav/ -dvd-device %f
- >
- > regex/\.m2ts$
- > Open=mplayer %f
- >
- 248,249c250,252
- < regex/\.([iI][sS][oO])$
- < Open=%cd %p/iso9660://
- ---
- > regex/\.iso$
- > Open=mplayer dvdnav/ -dvd-device %f
- > # Open=%cd %p/iso9660://
- 253c256
- < regex/\.(7z|7Z)$
- ---
- > shell/.7z
- 262a266,274
- > shell/CMakeLists.txt
- > Include=sources
- >
- > regex/\.(glade|ui)
- > Open=glade-3 $(echo %d/%p|iconv -f koi8-r -t utf-8) 1>&2 2>/dev/null &
- >
- > # JavaScript
- > shell/.js
- > Include=sources
- 266c278,282
- < Include=editor
- ---
- > Include=sources
- >
- > # CUDA
- > shell/.cu
- > Include=sources
- 270,271c286,287
- < Include=editor
- <
- ---
- > Include=sources
- >
- 274c290,296
- < Include=editor
- ---
- > Include=sources
- > # Open=%var{EDITOR:vi} %f
- >
- > # Object
- > type/^ELF
- > #Open=%var{PAGER:more} %f
- > View=%view{ascii} file %f && nm %f
- 278c300
- < Include=editor
- ---
- > Open=%var{EDITOR:vi} %f
- 282c304
- < Include=editor
- ---
- > Include=sources
- 284,285c306,312
- < include/editor
- < Open=%var{EDITOR:vi} %f
- ---
- > # autoconf/automake
- > regex/\.(ac|am)$
- > Include=sources
- >
- > # gettext pot-files
- > shell/.po
- > Open=poedit %f 2>&1 >/dev/null &
- 287,294c314,315
- < # .so libraries
- < regex/\.(so|so\.[0-9\.]*)$
- < View=%view{ascii} file %f && nm -C -D %f
- <
- < # Object
- < type/^ELF
- < #Open=%var{PAGER:more} %f
- < View=%view{ascii} file %f && nm -C %f
- ---
- > include/sources
- > Open=geany $(echo %d/%p|iconv -f koi8-r -t utf-8) 1>&2 2>/dev/null &
- 308,311d328
- < # Exception: .3gp are video files not manual pages
- < regex/\.(3[gG][pP])$
- < Include=video
- <
- 312a330,333
- > # Exception - .so libraries are not manual pages
- > regex/\.(so|so\.[0-9\.]*)$
- > View=%view{ascii} file %f && nm %f
- >
- 314,315c335,336
- < Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
- < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac
- ---
- > Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff -man %f ;; esac | %var{PAGER:more}
- > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff -man %f ;; esac
- 319,320c340,341
- < Open=pod2man %f | nroff -c -Tlatin1 -mandoc | %var{PAGER:more}
- < View=%view{ascii,nroff} pod2man %f | nroff -c -Tlatin1 -mandoc
- ---
- > Open=pod2man %f | nroff -man | %var{PAGER:more}
- > View=%view{ascii,nroff} pod2man %f | nroff -man
- 329,330c350,351
- < Open=nroff -c -Tlatin1 -me %f | %var{PAGER:more}
- < View=%view{ascii,nroff} nroff -c -Tlatin1 -me %f
- ---
- > Open=nroff -me %f | %var{PAGER:more}
- > View=%view{ascii,nroff} nroff -me %f
- 334,335c355,356
- < Open=nroff -c -Tlatin1 -ms %f | %var{PAGER:more}
- < View=%view{ascii,nroff} nroff -c -Tlatin1 -ms %f
- ---
- > Open=nroff -ms %f | %var{PAGER:more}
- > View=%view{ascii,nroff} nroff -ms %f
- 339,340c360,361
- < Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
- < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
- ---
- > Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -man ;; esac | %var{PAGER:more}
- > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff -man ;; esac
- 343,344c364,365
- < Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
- < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
- ---
- > Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -man ;; esac | %var{PAGER:more}
- > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff -man ;; esac
- 347,348c368,369
- < Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
- < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
- ---
- > Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -man ;; esac | %var{PAGER:more}
- > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff -man ;; esac
- 351,352c372,373
- < Open=case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
- < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
- ---
- > Open=case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -man ;; esac | %var{PAGER:more}
- > View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) lzma -dc %f ;; *) lzma -dc %f | nroff -man ;; esac
- 354,360d374
- < regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$
- < Open=case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
- < View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) xz -dc %f ;; *) xz -dc %f | nroff -c -Tlatin1 -mandoc ;; esac
- <
- < # CHM
- < regex/\.(chm|CHM)$
- < Open=which kchmviewer > /dev/null 2>&1 && (kchmviewer %f &) || (xchm %f &)
- 368d381
- < View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f 2>/dev/null
- 402,404d414
- < shell/.ico
- < Include=image
- <
- 406,407c416,417
- < Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
- < View=%view{ascii} identify %f
- ---
- > Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (feh -dFZ -Sname --start-at ./%p 2>&1 1>/dev/null &); fi
- > View=%view{ascii} identify %f && exiftool -p '$dateTimeOriginal' -q -s -Comment -q %f | enconv
- 413,414c423,427
- < regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
- < Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
- ---
- > regex/\.([wW][aA][vV]|[sS][nN][dD]|[aA][uU])$
- > Open=if [ "$DISPLAY" = "" ]; then play %f; else xdg-open %f 2>/dev/null; fi
- >
- > regex/\.([vV][oO][cC]|[sS][mM][pP]|[aA][iI][fF][fF])$
- > Open=if [ "$DISPLAY" = "" ]; then play %f; else (audacious %f >/dev/null &); fi
- 424,425c437,438
- < Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
- < View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
- ---
- > Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else audacious %f 2>/dev/null &; fi
- > View=%view{ascii} mpg321 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p' | enconv
- 427,428c440,441
- < regex/\.([oO][gG][gG|aA|vV|xX])$
- < Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f >/dev/null 2>&1 &); fi
- ---
- > regex/\.([oO][gG][gG])$
- > Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else xdg-open %f 2>/dev/null; fi
- 431,433d443
- < regex/\.([sS][pP][xX]|[fF][lL][aA][cC])$
- < Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms %f >/dev/null 2>&1 &); fi
- <
- 435c445
- < Open=timidity %f
- ---
- > Open=aplaymidi --port 17:0 %f
- 438c448
- < Open=mplayer -vo null %f
- ---
- > Open=if [ "$DISPLAY" = "" ]; then mplayer -vo null %f; else (mplayer %f 2>/dev/null); fi
- 441d450
- <
- 445c454
- < Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else (xmms -p %f >/dev/null 2>&1 &); fi
- ---
- > Open=if [ -z "$DISPLAY" ]; then mplayer -vo null -playlist %f; else xdg-open %f 2>/dev/null; fi
- 452a462,465
- > regex/\.([oO][gG][gG])$
- > Include=video
- >
- >
- 457c470
- < Include=video
- ---
- > Open=(mplayer %f >/dev/null 2>&1 &)
- 468,471d480
- < # MPEG-2 TS container + H.264 codec
- < regex/\.([mM][tT][sS])$
- < Include=video
- <
- 485c494,501
- < Open=(realplay %f >/dev/null 2>&1 &)
- ---
- > Include=video
- >
- >
- > regex/\.(3[gG][pP])$
- > Include=video
- >
- > shell/.m2ts
- > Include=video
- 488a505
- > View=%view{ascii} aviinfo %f 2>/dev/null
- 497c514
- < Open=(gv %f &)
- ---
- > Open=okular %f 1>/dev/null 2>&1 &
- 502c519,520
- < Open=(xpdf %f &)
- ---
- > Open=okular %f 1>&2 2>/dev/null &
- > #Open=xpdf -fullscreen %f 2>/dev/null &
- 505c523,527
- < View=%view{ascii} pdftotext %f -
- ---
- > View=%view{ascii} pdftotext %f - | enconv
- >
- > regex/\.([dD][jJ][vV][uU]?)$
- > Open=djview %f 1>/dev/null 2>&1 &
- >
- 511,513c533,535
- < regex/\.([hH][tT][mM][lL]?)$
- < 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
- < View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
- ---
- > regex/\.([hH][tT][mM][lL]?|js)$
- > Open=bluefish %f >&2 2>/dev/null &
- > View=%view{ascii} lynx -dump -assume_charset koi8-r -force_html %f
- 521,523c543,546
- < Open=(ooffice %f &)
- < View=%view{ascii} odt2txt %f
- <
- ---
- > Open=soffice %f 2>/dev/null
- > View=%view{ascii} unzip -p %f content.xml | o3read
- > # View=%view{ascii} o3read %f 2>/dev/null &
- >
- 526c549
- < Open=(abiword %f &)
- ---
- > Open=xdg-open %f 2>/dev/null
- 530,531c553,554
- < Open=(abiword %f >/dev/null 2>&1 &)
- < View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
- ---
- > Open=soffice %f 2>/dev/null
- > View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
- 533,534c556,557
- < Open=(abiword %f >/dev/null 2>&1 &)
- < View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
- ---
- > Open=soffice %f 2>/dev/null
- > View=%view{ascii} catdoc -w %f
- 538c561,562
- < Open=(abiword %f >/dev/null 2>&1 &)
- ---
- > Open=soffice %f 2>/dev/null
- > View=%view{ascii} catdoc -w %f
- 542c566
- < Open=(gnumeric %f >/dev/null 2>&1 &)
- ---
- > Open=soffice %f 2>/dev/null
- 545c569
- < Open=(gnumeric %f >/dev/null 2>&1 &)
- ---
- > Open=soffice %f 2>/dev/null
- 548c572
- < # Use OpenOffice.org to open any MS Office documents
- ---
- > # MS Office documents
- 550c574
- < Open=(ooffice %f &)
- ---
- > Open=soffice %f 2>/dev/null
- 558c582
- < Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
- ---
- > Open=xdvi %f 1>/dev/null 2>&1 &
- 563c587,593
- < Include=editor
- ---
- > Open=kile %f 2>/dev/null &
- >
- > regex/\.kilepr$
- > Open=kile %f 2>/dev/null &
- >
- > regex/\.([Tt][Xx][Tt])$
- > Open=medit %f 2>&1 1>/dev/null &
- 565,567d594
- < # DjVu
- < regex/\.(djvu|DJVU)$
- < Open=djview %f &
- 592,613d618
- < # Disk images for Commodore computers (VIC20, C64, C128)
- < regex/\.(d64|D64)$
- < Open=%cd %p/uc1541://
- < View=%view{ascii} c1541 %f -list
- < Extract=c1541 %f -extract
- <
- < # Glade, a user interface designer for GTK+ and GNOME
- < regex/\.([Gg][Ll][Aa][Dd][Ee])$
- < 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
- <
- < # Gettext Catalogs
- < shell/.mo
- < View=%view{ascii} msgunfmt %f || cat %f
- <
- < # lyx
- < regex/\.(lyx|LYX)$
- < Open=lyx %f
- < View=%view{ascii} lyxcat %f
- <
- < # torrent
- < regex/\.([tT][oO][rR][rR][eE][nN][tT])$
- < View=%view{ascii} ctorrent -x %f 2>/dev/null
- 617,629d621
- < # ace
- < regex/\.(ace|ACE)$
- < Open=%cd %p/uace://
- < View=%view{ascii} unace l %f
- < Extract=unace x %f
- <
- < # arc
- < regex/\.(arc|ARC)$
- < Open=%cd %p/uarc://
- < View=%view{ascii} arc l %f
- < Extract=arc x %f '*'
- < Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi
- <
- 639c631
- <
- ---
- >
- 645c637
- < regex/\.(gz|Z)$
- ---
- > regex/\.(gz|Z)?$
- 671,674d662
- < # xz
- < regex/\.xz$
- < Open=xz -dc %f | %var{PAGER:more}
- < View=%view{ascii} xz -dc %f 2>/dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement