Fix lf_preview
This commit is contained in:
parent
9363b6f8c4
commit
129ec4bf27
|
@ -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*)
|
||||
|
|
Loading…
Reference in New Issue