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.
*image/*)
chafa -f sixel -s "$2x$3" "$1"
chafa -f sixel -s "$2x$3" "$1" --polite on
;;
# .7z
*application/x-7z-compressed*)
@ -33,7 +33,7 @@ case "$MIME" in
unzip -l "$1"
;;
*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
*text/plain*)