You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to be the echo lines, I see the same output you do with your script as written and with this script it previews images successfully.
#!/bin/shcase"$(file -Lb --mime-type -- "$1")"in
image/*)
chafa -f sixel -s "$2x$3" --animate off --polite on "$1"exit 1
;;
*)
echo"Not an image file, displaying as text"
cat "$1"
;;
esac
BRUH. I added those lines for debugging purposes, but it was the problem. Initially, I copied the script directly from the docs and that had an echo in it too. They should remove that.
This is my lfrc
My preview script
Chafa in terminal without lf
Chafa with lf
Distribution: Fedora 39
Terminal: Foot
Linux-kernel: 6.6.14-200.fc39.x86_64
Edit: It might be related to #1582 but notice that i have
polite --on
in my script already.Edit 2: No it's prolly not, my current chafa version is 1.10.3
Edit 3: I updated my chafa to 1.15.0 and the issue still the same.
The text was updated successfully, but these errors were encountered: