From 2df17505d4afe50d37cda8dba2c2a2524f41aed2 Mon Sep 17 00:00:00 2001 From: David Chen Date: Sat, 9 May 2020 18:19:04 -0400 Subject: [PATCH] ranger config update --- ranger/rifle.conf | 2 +- ranger/scope.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ranger/rifle.conf b/ranger/rifle.conf index 6cd4a33..7883e71 100755 --- a/ranger/rifle.conf +++ b/ranger/rifle.conf @@ -87,7 +87,7 @@ # Define the "editor" for text files as first action 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|dart|html|org = ${VISUAL:-$EDITOR} -- "$@" +!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|dart|html|org|ts = ${VISUAL:-$EDITOR} -- "$@" !mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" ext 1 = man "$1" diff --git a/ranger/scope.sh b/ranger/scope.sh index 57ab2a4..56e79ee 100755 --- a/ranger/scope.sh +++ b/ranger/scope.sh @@ -84,10 +84,10 @@ handle_extension() { elinks -dump "${FILE_PATH}" && exit 5 ;; # Continue with next handler on failure # JSON - json) - jq --color-output . "${FILE_PATH}" && exit 5 - python -m json.tool -- "${FILE_PATH}" && exit 5 - ;; + #json) + #jq --color-output . "${FILE_PATH}" && exit 5 + #python -m json.tool -- "${FILE_PATH}" && exit 5 + #;; esac }