diff --git a/ranger/rc.conf b/ranger/rc.conf index e655a31..b72a117 100644 --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -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 diff --git a/ranger/rifle.conf b/ranger/rifle.conf index 7883e71..988c76f 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|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" diff --git a/ranger/scope.sh b/ranger/scope.sh index 56e79ee..6206fe0 100755 --- a/ranger/scope.sh +++ b/ranger/scope.sh @@ -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