summaryrefslogtreecommitdiffstats
path: root/.config/lf
diff options
context:
space:
mode:
authorOscar Lastra <56526315+lastra-dev@users.noreply.github.com>2022-03-13 13:52:08 -0600
committerGitHub <noreply@github.com>2022-03-13 19:52:08 +0000
commit0daa4d345042b3c417ea9dab6927c9ce93bd9332 (patch)
treeb8d2f4efdb23b1f7d4c9ead052668a5954c52476 /.config/lf
parentfe4ea560ac2448d515542e363c2c6296886ec935 (diff)
downloadeibhear-0daa4d345042b3c417ea9dab6927c9ce93bd9332.tar.gz
eibhear-0daa4d345042b3c417ea9dab6927c9ce93bd9332.tar.zst
eibhear-0daa4d345042b3c417ea9dab6927c9ce93bd9332.zip
feat(lf): Add JSON preview (#1090)
Diffstat (limited to '.config/lf')
-rwxr-xr-x.config/lf/scope2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/lf/scope b/.config/lf/scope
index a6ff3db..71ab628 100755
--- a/.config/lf/scope
+++ b/.config/lf/scope
@@ -25,7 +25,7 @@ case "$(file --dereference --brief --mime-type -- "$1")" in
image/*) image "$1" "$2" "$3" "$4" "$5" ;;
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
text/troff) man ./ "$1" | col -b ;;
- text/* | */xml) bat --terminal-width "$4" -f "$1" ;;
+ text/* | */xml | application/json) bat --terminal-width "$4" -f "$1" ;;
application/zip) atool --list -- "$1" ;;
audio/* | application/octet-stream) mediainfo "$1" || exit 1;;
video/* )