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.conf14
1 files changed, 9 insertions, 5 deletions
diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf
index 2a4ce83..1e10eb3 100644
--- a/.config/ranger/rifle.conf
+++ b/.config/ranger/rifle.conf
@@ -51,10 +51,10 @@ ext 1|2|3|4|5|6|7|8|9 = man "$@"
# editor for text files
mime ^text, label editor = "$EDITOR" -- "$@"
-mime ^text, label editor has urxvt, X, flag f = urxvt -e "$EDITOR" "$@"
+mime ^text, label weditor X, flag f t = "$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" "$@"
+!mime ^text, ext xml|html|xhtml|csv|tex|py|pl|rb|sh|php, X, flag f t = "$EDITOR" -- "$@"
# websites
ext x?html?, has firefox, X, flag f = firefox -- "$@"
@@ -141,12 +141,16 @@ name ^[mM]akefile$ = make new
name ^[mM]akefile$ = make clean
name ^[mM]akefile$ = make debug
+# open all files of source type
+directory, has srcopen = srcopen "$@"
+directory, has srcopen, X, flag f t = srcopen "$@"
+
# music conversion and import
directory, has beet = beet imp -t "$1"
-# edit
-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" "$@"
+# editor for misc files
+!directory, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@"
+!directory, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php, X, flag f t = "$EDITOR" -- "$@"
# Send to server & copy to clipboard
has send, X = send "$@"