summaryrefslogtreecommitdiff
path: root/ar/.config/lf
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.config/lf')
-rwxr-xr-xar/.config/lf/scope2
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.config/lf/scope b/ar/.config/lf/scope
index fc26f5e..c287f43 100755
--- a/ar/.config/lf/scope
+++ b/ar/.config/lf/scope
@@ -43,7 +43,7 @@ image/x-xcf)
image/*) image "$1" "$2" "$3" "$4" "$5" "$1" ;;
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
text/troff) man ./ "$1" | col -b ;;
-text/* | */xml | application/json | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4 - 2))" -f "$1" ;;
+text/* | */xml | application/json | application/java* | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4 - 2))" -f "$1" ;;
audio/*) mediainfo "$1" || exit 1 ;;
video/* | application/octet-stream | application/vnd.rn-realmedia)
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"