aboutsummaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/ranger/rifle.conf5
1 files changed, 4 insertions, 1 deletions
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 "$@"