aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfiles/ranger/scope.sh4
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