1
0
Fork 0

lf preview for json

This commit is contained in:
zymon 2024-10-20 18:11:04 +02:00
parent 3e302f6a65
commit bb25878b2a

View file

@ -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
;;