diff options
author | InigoGutierrez <inigogf@disroot.org> | 2024-07-19 10:55:49 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf@disroot.org> | 2024-07-19 10:55:49 +0200 |
commit | adfdb44fca2950d5ff4d3fbb357506d36feae885 (patch) | |
tree | e3cdd5c6d8c7687f8401a53b44cca9694b5d491f /stow/ranger | |
parent | 9b667c9143928ca93b40250b18cbf628ba968ab6 (diff) | |
download | configs-adfdb44fca2950d5ff4d3fbb357506d36feae885.tar.gz configs-adfdb44fca2950d5ff4d3fbb357506d36feae885.zip |
Diffstat (limited to 'stow/ranger')
-rwxr-xr-x | stow/ranger/.config/ranger/scope.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stow/ranger/.config/ranger/scope.sh b/stow/ranger/.config/ranger/scope.sh index 538f044..7819266 100755 --- a/stow/ranger/.config/ranger/scope.sh +++ b/stow/ranger/.config/ranger/scope.sh @@ -109,6 +109,10 @@ handle_extension() { python -m json.tool -- "${FILE_PATH}" && exit 5 ;; + hjson) + cat "${FILE_PATH}" && exit 5 + ;; + ## Direct Stream Digital/Transfer (DSDIFF) and wavpack aren't detected ## by file(1). dff|dsf|wv|wvc) @@ -315,7 +319,7 @@ handle_mime() { exit 1;; ## Text - text/* | */xml) + text/* | */xml | */javascript) ## Syntax highlight if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then exit 2 |