mirror of
https://github.com/theniceboy/.config.git
synced 2026-07-16 22:01:21 +08:00
ranger config update
This commit is contained in:
parent
3f59cc2f64
commit
2df17505d4
2 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue