From 47479cf9d96b7b67a8799edb46f70fa559d9ee43 Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 22 Mar 2018 16:12:30 -0700 Subject: reinstate editor fallback wiped it accidentally in cleaning --- .config/ranger/rifle.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.config/ranger/rifle.conf') diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf index 51422f3..9f1f981 100644 --- a/.config/ranger/rifle.conf +++ b/.config/ranger/rifle.conf @@ -55,7 +55,7 @@ ext 1|2|3|4|5|6|7|8|9 = man "$@" # editor for text files mime ^text, label editor = "$EDITOR" -- "$@" -mime ^text, has urxvt, X, flag f = urxvt -e "$EDITOR" "$@" +mime ^text, label editor 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" "$@" @@ -127,6 +127,9 @@ name ^[mM]akefile$ = make new name ^[mM]akefile$ = make clean name ^[mM]akefile$ = make debug +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 = send "$@" -- cgit v1.2.3