|
|
@ -1,4 +1,5 @@ |
|
|
|
# vim: ft=cfg |
|
|
|
# info {{{ |
|
|
|
# |
|
|
|
# This is the configuration file of "rifle", ranger's file executor/opener. |
|
|
|
# Each line consists of conditions and a command. For each line the conditions |
|
|
@ -47,48 +48,50 @@ |
|
|
|
# implementation may differ. |
|
|
|
# Note: When using rifle in ranger, there is an additional flag "c" for |
|
|
|
# only running the current file even if you have marked multiple files. |
|
|
|
# }}} |
|
|
|
|
|
|
|
#------------------------------------------- |
|
|
|
# Websites |
|
|
|
# Websites {{{ |
|
|
|
#------------------------------------------- |
|
|
|
# Rarely installed browsers get higher priority; It is assumed that if you |
|
|
|
# install a rare browser, you probably use it. Firefox/konqueror/w3m on the |
|
|
|
# other hand are often only installed as fallback browsers. |
|
|
|
ext x?html?, has surf, X, flag f = surf -- file://"$1" |
|
|
|
ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@" |
|
|
|
ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@" |
|
|
|
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" |
|
|
|
ext x?html?, has dwb, X, flag f = dwb -- "$@" |
|
|
|
ext x?html?, has jumanji, X, flag f = jumanji -- "$@" |
|
|
|
ext x?html?, has luakit, X, flag f = luakit -- "$@" |
|
|
|
ext x?html?, has uzbl, X, flag f = uzbl -- "$@" |
|
|
|
ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@" |
|
|
|
ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@" |
|
|
|
ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@" |
|
|
|
ext x?html?, has midori, X, flag f = midori -- "$@" |
|
|
|
ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@" |
|
|
|
ext x?html?, has chromium, X, flag f = chromium -- "$@" |
|
|
|
ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@" |
|
|
|
ext x?html?, has opera, X, flag f = opera -- "$@" |
|
|
|
ext x?html?, has firefox, X, flag f = firefox -- "$@" |
|
|
|
ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@" |
|
|
|
ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@" |
|
|
|
ext x?html?, has epiphany, X, flag f = epiphany -- "$@" |
|
|
|
ext x?html?, has konqueror, X, flag f = konqueror -- "$@" |
|
|
|
ext x?html?, has elinks, terminal = elinks "$@" |
|
|
|
ext x?html?, has links2, terminal = links2 "$@" |
|
|
|
ext x?html?, has links, terminal = links "$@" |
|
|
|
ext x?html?, has lynx, terminal = lynx -- "$@" |
|
|
|
ext x?html?, has w3m, terminal = w3m "$@" |
|
|
|
|
|
|
|
#------------------------------------------- |
|
|
|
# Misc |
|
|
|
# ext x?html?, has surf, X, flag f = surf -- file://"$1" |
|
|
|
# ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@" |
|
|
|
# ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@" |
|
|
|
# ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" |
|
|
|
# ext x?html?, has dwb, X, flag f = dwb -- "$@" |
|
|
|
# ext x?html?, has jumanji, X, flag f = jumanji -- "$@" |
|
|
|
# ext x?html?, has luakit, X, flag f = luakit -- "$@" |
|
|
|
# ext x?html?, has uzbl, X, flag f = uzbl -- "$@" |
|
|
|
# ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@" |
|
|
|
# ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@" |
|
|
|
# ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@" |
|
|
|
# ext x?html?, has midori, X, flag f = midori -- "$@" |
|
|
|
# ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@" |
|
|
|
# ext x?html?, has chromium, X, flag f = chromium -- "$@" |
|
|
|
# ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@" |
|
|
|
# ext x?html?, has opera, X, flag f = opera -- "$@" |
|
|
|
# ext x?html?, has firefox, X, flag f = firefox -- "$@" |
|
|
|
# ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@" |
|
|
|
# ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@" |
|
|
|
# ext x?html?, has epiphany, X, flag f = epiphany -- "$@" |
|
|
|
# ext x?html?, has konqueror, X, flag f = konqueror -- "$@" |
|
|
|
# ext x?html?, has elinks, terminal = elinks "$@" |
|
|
|
# ext x?html?, has links2, terminal = links2 "$@" |
|
|
|
# ext x?html?, has links, terminal = links "$@" |
|
|
|
# ext x?html?, has lynx, terminal = lynx -- "$@" |
|
|
|
# ext x?html?, has w3m, terminal = w3m "$@" |
|
|
|
# }}} |
|
|
|
|
|
|
|
# text {{{ |
|
|
|
#------------------------------------------- |
|
|
|
# Define the "editor" for text files as first action |
|
|
|
# mime ^text, label editor = urxvt -e "${VISUAL:-$EDITOR} -- $@" |
|
|
|
mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@" |
|
|
|
mime ^text, label pager = "$PAGER" -- "$@" |
|
|
|
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish = ${VISUAL:-$EDITOR} -- "$@" |
|
|
|
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish = "$PAGER" -- "$@" |
|
|
|
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish|html|yml|scss = ${VISUAL:-$EDITOR} -- "$@" |
|
|
|
# !mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish|html|yml|scss = urxvt -e ${VISUAL:-$EDITOR} -- "$@" |
|
|
|
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish|html|yml|scss = "$PAGER" -- "$@" |
|
|
|
|
|
|
|
ext 1 = man "$1" |
|
|
|
ext s[wmf]c, has zsnes, X = zsnes "$1" |
|
|
@ -97,6 +100,8 @@ ext nes, has fceux, X = fceux "$1" |
|
|
|
ext exe = wine "$1" |
|
|
|
name ^[mM]akefile$ = make |
|
|
|
|
|
|
|
# }}} |
|
|
|
|
|
|
|
#-------------------------------------------- |
|
|
|
# Code |
|
|
|
#------------------------------------------- |
|
|
|