From 129ec4bf27e8c1ca44b111792d4f36a5a52e3b1f Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Wed, 20 Mar 2024 09:05:51 +0300 Subject: [PATCH] Fix lf_preview --- lf_preview.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lf_preview.sh b/lf_preview.sh index 459b71c..6a2ddb0 100755 --- a/lf_preview.sh +++ b/lf_preview.sh @@ -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*)