aboutsummaryrefslogtreecommitdiffstats
path: root/.config/ranger/rifle.conf
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2021-08-04 00:06:44 -0700
committerkatherine <ageha@airen-no-jikken.icu>2021-08-04 00:06:44 -0700
commit819a54de34713096c9a25d6fc61bc4c28bfe91f0 (patch)
tree341afe6a4b290ef7b2bd9edbfd141015ac680e1c /.config/ranger/rifle.conf
parent312b67eb994c8decfa0606b6a54e9ec9226cafa3 (diff)
downloaddotfiles-819a54de34713096c9a25d6fc61bc4c28bfe91f0.tar.gz
add srcopen
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 "$@"