Fix lf_preview

This commit is contained in:
Digital Studium 2024-03-20 09:05:51 +03:00
parent 9363b6f8c4
commit 129ec4bf27
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ case "$MIME" in
;; ;;
# .jpeg, png etc. # .jpeg, png etc.
*image/*) *image/*)
chafa -f sixel -s "$2x$3" "$1" chafa -f sixel -s "$2x$3" "$1" --polite on
;; ;;
# .7z # .7z
*application/x-7z-compressed*) *application/x-7z-compressed*)
@ -33,7 +33,7 @@ case "$MIME" in
unzip -l "$1" unzip -l "$1"
;; ;;
*text/markdown*) *text/markdown*)
pandoc $1 > /tmp/lf_preview.html && cutycapt --url=file:///tmp/lf_preview.html --out=/tmp/lf_preview.png && chafa -s "$2x$3" -f sixel /tmp/lf_preview.png pandoc $1 > /tmp/lf_preview.html && cutycapt --url=file:///tmp/lf_preview.html --out=/tmp/lf_preview.png && chafa -s "$2x$3" -f sixel /tmp/lf_preview.png --polite on
;; ;;
# any plain text file that doesn't have a specific handler # any plain text file that doesn't have a specific handler
*text/plain*) *text/plain*)