From bb25878b2a0f7a92348ec03c9a7c360fc089c7c9 Mon Sep 17 00:00:00 2001 From: zymon Date: Sun, 20 Oct 2024 18:11:04 +0200 Subject: [PATCH] lf preview for json --- config/lf/preview | 1 + 1 file changed, 1 insertion(+) diff --git a/config/lf/preview b/config/lf/preview index 73f7bc5..1c011f3 100755 --- a/config/lf/preview +++ b/config/lf/preview @@ -50,6 +50,7 @@ case "$(printf "%s\n" "$(readlink -f "$1")" | awk '{print tolower($0)}')" in *.doc) catdoc "$1" ;; *.docx) docx2txt "$1" ;; *.xml|*.html) w3m -dump "$1";; + *.json ) jq '.' "$1";; *.xls|*.xlsx) ssconvert --export-type=Gnumeric_stf:stf_csv "$1" "fd://1" | batorcat --language=csv ;;