ranger config update

This commit is contained in:
David Chen 2020-05-09 18:19:04 -04:00
parent 3f59cc2f64
commit 2df17505d4
2 changed files with 5 additions and 5 deletions

View file

@ -87,7 +87,7 @@
# Define the "editor" for text files as first action # Define the "editor" for text files as first action
mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@" mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@"
mime ^text, label pager = "$PAGER" -- "$@" 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" -- "$@" !mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext 1 = man "$1" ext 1 = man "$1"

View file

@ -84,10 +84,10 @@ handle_extension() {
elinks -dump "${FILE_PATH}" && exit 5 elinks -dump "${FILE_PATH}" && exit 5
;; # Continue with next handler on failure ;; # Continue with next handler on failure
# JSON # JSON
json) #json)
jq --color-output . "${FILE_PATH}" && exit 5 #jq --color-output . "${FILE_PATH}" && exit 5
python -m json.tool -- "${FILE_PATH}" && exit 5 #python -m json.tool -- "${FILE_PATH}" && exit 5
;; #;;
esac esac
} }