aboutsummaryrefslogtreecommitdiffstats
path: root/.config/ranger/rifle.conf
diff options
context:
space:
mode:
Diffstat (limited to '.config/ranger/rifle.conf')
-rw-r--r--.config/ranger/rifle.conf18
1 files changed, 9 insertions, 9 deletions
diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf
index ed66344..aa57817 100644
--- a/.config/ranger/rifle.conf
+++ b/.config/ranger/rifle.conf
@@ -48,6 +48,15 @@
# only running the current file even if you have marked multiple files.
#-------------------------------------------
+# Misc
+#-------------------------------------------
+# Define the "editor" for text files as first action
+mime ^text, label editor = "$EDITOR" -- "$@"
+mime ^text, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@"
+!mime ^text, ext xml|html|xhtml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@"
+!mime ^text, ext xml|html|xhtml|csv|tex|py|pl|rb|sh|php, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@"
+
+#-------------------------------------------
# Websites
#-------------------------------------------
# Rarely installed browsers get higher priority; It is assumed that if you
@@ -69,15 +78,6 @@ ext x?html?, has links, terminal = links "$@"
ext x?html?, has lynx, terminal = lynx -- "$@"
ext x?html?, has w3m, terminal = w3m "$@"
-#-------------------------------------------
-# Misc
-#-------------------------------------------
-# Define the "editor" for text files as first action
-mime ^text, label editor = "$EDITOR" -- "$@"
-mime ^text, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@"
-!mime ^text, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@"
-!mime ^text, ext xml|csv|tex|py|pl|rb|sh|php, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@"
-
# wine
ext exe, has wine, X, flag f = wine "$1"