lf preview for json
This commit is contained in:
parent
3e302f6a65
commit
bb25878b2a
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ case "$(printf "%s\n" "$(readlink -f "$1")" | awk '{print tolower($0)}')" in
|
||||||
*.doc) catdoc "$1" ;;
|
*.doc) catdoc "$1" ;;
|
||||||
*.docx) docx2txt "$1" ;;
|
*.docx) docx2txt "$1" ;;
|
||||||
*.xml|*.html) w3m -dump "$1";;
|
*.xml|*.html) w3m -dump "$1";;
|
||||||
|
*.json ) jq '.' "$1";;
|
||||||
*.xls|*.xlsx)
|
*.xls|*.xlsx)
|
||||||
ssconvert --export-type=Gnumeric_stf:stf_csv "$1" "fd://1" | batorcat --language=csv
|
ssconvert --export-type=Gnumeric_stf:stf_csv "$1" "fd://1" | batorcat --language=csv
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue