diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2020-03-04 23:22:31 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2020-03-04 23:22:31 +0100 |
commit | a8853078e863cb1b16551364ea689a39a4673c34 (patch) | |
tree | 4918dc7a3d55b4ba70f6331d0469fbf86117e403 /files/ranger | |
parent | bb3cf4d235ca41e265ed0e5508a2ddf02e8389a1 (diff) | |
download | configs-a8853078e863cb1b16551364ea689a39a4673c34.tar.gz configs-a8853078e863cb1b16551364ea689a39a4673c34.zip |
Added json files preview to ranger's scope.sh.
Diffstat (limited to 'files/ranger')
-rwxr-xr-x | files/ranger/scope.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/files/ranger/scope.sh b/files/ranger/scope.sh index fdb6e91..8ba84e0 100755 --- a/files/ranger/scope.sh +++ b/files/ranger/scope.sh @@ -93,6 +93,10 @@ case "$extension" in try lynx -dump "$path" && { dump | trim | fmt -s -w "$width;" exit 4; } try elinks -dump "$path" && { dump | trim | fmt -s -w "$width;" exit 4; } ;; # fall back to highlight/cat if the text browsers fail + # Plain text files: + json) + mimetype="text/" # Fix so it calls as if it had text mimetype + esac case "$mimetype" in |