mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 06:24:57 +08:00
ranger config updates
This commit is contained in:
parent
a600689628
commit
024aa8e500
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue