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 }