diff options
-rwxr-xr-x | ranger/data/scope.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 13a25b45..8e0a0f6d 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -83,6 +83,11 @@ handle_extension() { lynx -dump -- "${FILE_PATH}" && exit 5 elinks -dump "${FILE_PATH}" && exit 5 ;; # Continue with next handler on failure + # JSON + json) + jq --color-output . "${FILE_PATH}" && exit 5 + python -m json.tool -- "${FILE_PATH}" && exit 5 + ;; esac } |