aboutsummaryrefslogtreecommitdiffstats
path: root/.config/ranger
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-03-19 22:17:28 -0700
committerkatherine <shmibs@shmibbles.me>2016-03-19 22:17:28 -0700
commite92af1f7088cc5b6b40a5ceba275a197c305de62 (patch)
tree5d92832f1ecdaff44ca61a15f3c3d11b49fb2d79 /.config/ranger
parentb351865a2b3678708d70c6e088c70ae8f7fd923f (diff)
downloaddotfiles-e92af1f7088cc5b6b40a5ceba275a197c305de62.tar.gz
snapshot
lots of random things changed; forgot to update for a while again. moving things to .config/init/funcs is one important thing; means being able to use those shell scripts anywhere, like ranger or whatever
Diffstat (limited to '.config/ranger')
-rw-r--r--.config/ranger/rifle.conf30
1 files changed, 19 insertions, 11 deletions
diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf
index 8cdb0b5..b1bea0d 100644
--- a/.config/ranger/rifle.conf
+++ b/.config/ranger/rifle.conf
@@ -21,6 +21,7 @@
# name <regexp> | The regexp matches the basename of $1
# path <regexp> | The regexp matches the absolute path of $1
# has <program> | The program is installed (i.e. located in $PATH)
+# env <variable> | The environment variable "variable" is non-empty
# file | $1 is a file
# directory | $1 is a directory
# number <n> | change the number of this command to n
@@ -65,9 +66,11 @@ mime ^text, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@"
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 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 firefox, X, flag f = firefox -- "$@"
@@ -94,6 +97,7 @@ name ^[mM]akefile$ = make clean
ext py = python -- "$1"
ext pl = perl -- "$1"
ext rb = ruby -- "$1"
+ext js = node -- "$1"
ext sh = sh -- "$1"
ext php = php -- "$1"
@@ -112,15 +116,8 @@ mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
#--------------------------------------------
# Video without X:
#-------------------------------------------
-mime ^video, terminal, !X, has mpv = mplayer -- "$@"
+mime ^video, terminal, !X, has mpv = mpv -- "$@"
-#-------------------------------------------
-# Image Viewing:
-#-------------------------------------------
-ext svg, has inkscape, X, flag f = inkscape -- "$@"
-mime ^image, has sxiv, X, flag f = sxiv -a "$@"
-mime ^image, has gimp, X, flag f = gimp -- "$@"
-ext xcf, X, flag f = gimp -- "$@"
#-------------------------------------------
# Documents
@@ -136,6 +133,14 @@ ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, fla
ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric|rtf, has libreoffice, X, flag f = libreoffice "$@"
#-------------------------------------------
+# Image Viewing:
+#-------------------------------------------
+mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
+mime ^image, has sxiv, X, flag f = sxiv -a "$@"
+mime ^image, has gimp, X, flag f = gimp -- "$@"
+ext xcf, X, flag f = gimp -- "$@"
+
+#-------------------------------------------
# Archives
#-------------------------------------------
# This requires atool
@@ -163,9 +168,12 @@ ext 8xp|8xk|8xv|8xu, has tilp = tilp --no-gui "$@"
#-------------------------------------------
# Roms
#-------------------------------------------
-ext s[wmf]c, has snes9x-gtk, X flag f = snes9x-gtk "$1"
-ext nes|gb|gb[ca], has mednafen, X, flag f = mednafen "$1"
+ext nes|gb|gb[ca]|s[wmf]c, has mednafen, X, flag f = mednafen "$1"
-# Define the editor for non-text files as last action
+# Define the editor for non-text
label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@"
label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@"
+
+# Send to server & copy to clipboard
+has send, X, flag f = send "$@"
+