-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gif render issues on terminal while using with fzf #244
Comments
Looks to me like a cursor positioning issue. Why it happens, I'm not sure but fzf might have something to do with it cos last I checked, cursor positioning works well in your environment (i.e in the bare TE). So, I can't really suggest a solution. A possible hack that comes to mind right now is to intercept chafa's output and modify/replace the chafa --duration inf ... | sed -E -e s/\x1b\[[0-9]+A/\x1b[${PREVIEW_HEIGHT}A/ The Though I think it's more likely to be successful if the sequence were entirely replaced; seeing your fzf interface is full-screen and uses the alternate buffer (non-scrolling), you'd have a better chance of getting things to work by replacing the
* Take note of the I should also mention that |
Thanks, @AnonymouX47. Also, |
|
Is fzf bottlenecking it (100% in top), or something else? |
@hpjansson this is a test for you to see on your computer https://drive.google.com/file/d/1mjbF5w2T_3z_rdjAKmfkQMNQtY1-APNh/view?usp=drivesdk unzip and run |
I have been trying to find a way to get chafa to work alongside as a image previewer for setting wallpaper. My wallpapers dir contains valid image formats 'png/jpg/gif'. While the static image preview is fine, during gif preview it just vomits on the terminal.
chafa-fzf-reduced.mp4
I have tested many different alternatives such as
imgcat
,kitty's icat
andueberzugpp
. whereueberzugpp
is the only one who can render gif preview without any terminal buffer abuse.Kitty
andimgcat
does not seem to support animated previews.I have seen many people just putting the
--animate off
argument. but I would like to see if this can be fixed or hacked in some sense. Because there is nothing faster than chafa on the whole internet afaik.Snippet from my wallpaper tool
Expected behaviour:
uerberzugpp-fzf-reduced.mp4
Environment:
The text was updated successfully, but these errors were encountered: