ranger config updates

This commit is contained in:
David Chen 2022-10-20 21:23:08 -07:00
parent a600689628
commit 024aa8e500
3 changed files with 4 additions and 4 deletions

View file

@ -463,7 +463,7 @@ map yr copy mode=remove
map yt copy mode=toggle
map C console compress%space
map X console extracthere%space
# map X console extracthere%space
map cp shell pandoc %f -o %f.pdf
map ytv console shell youtube-dl -ic%space
map yta console shell youtube-dl -xic%space

View file

@ -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|ts = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|dart|html|org|ts|rkt|md|sql = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext 1 = man "$1"

View file

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