From 31e8c6ef2f9061d919e9d690e747e3482d24ceb6 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 10 Nov 2020 16:05:42 +0100 Subject: [PATCH] Change to Environment variables again --- arch-config/.config/ranger/rifle.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch-config/.config/ranger/rifle.conf b/arch-config/.config/ranger/rifle.conf index 31405602..86f53fd1 100644 --- a/arch-config/.config/ranger/rifle.conf +++ b/arch-config/.config/ranger/rifle.conf @@ -85,11 +85,9 @@ ext x?html?, has w3m, terminal = w3m "$@" # Misc #------------------------------------------- # Define the "editor" for text files as first action -#mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@" -#mime ^text, label editor = /usr/bin/emacs --no-window-system -- "$@" -mime ^text, label editor = $EDITOR -- "$@" +mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@" mime ^text, label pager = "$PAGER" -- "$@" -!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@" +!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@" !mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" ext 1 = man "$1"