From 819a54de34713096c9a25d6fc61bc4c28bfe91f0 Mon Sep 17 00:00:00 2001 From: katherine Date: Wed, 4 Aug 2021 00:06:44 -0700 Subject: add srcopen --- .config/ranger/rifle.conf | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to '.config/ranger') 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 "$@" -- cgit v1.2.3