From 69211ab83c1ce62b7fa95eaeae3d01d75e06b85d Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 10 Nov 2020 15:59:00 +0100 Subject: [PATCH] Change to editor variable --- arch-config/.config/ranger/rifle.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch-config/.config/ranger/rifle.conf b/arch-config/.config/ranger/rifle.conf index 2fa9443d..31405602 100644 --- a/arch-config/.config/ranger/rifle.conf +++ b/arch-config/.config/ranger/rifle.conf @@ -86,9 +86,10 @@ ext x?html?, has w3m, terminal = w3m "$@" #------------------------------------------- # 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 = /usr/bin/emacs --no-window-system -- "$@" +mime ^text, label editor = $EDITOR -- "$@" mime ^text, label pager = "$PAGER" -- "$@" -!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = /usr/bin/emacs --no-window-system -- "$@" +!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@" !mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" ext 1 = man "$1"