xlucn / fontpreview-ueberzug

preview fonts in fzf
MIT License
163 stars 11 forks source link

Idea: use a general image viewer (response to ueberzug's removal) #18

Open xlucn opened 1 year ago

xlucn commented 1 year ago

In case anyone doesn't know, as the time of writing, ueberzug has been removed by the author due to some "harassment and insulting" (see the current project readme). So my little script need adapting, too.

My current thought is to enable it to use any image viewer, as long as it can monitor file changes and reload when needed. With this change the appearance will be similar to the original fontpreview, but still having the advantage of the continuous experience. That is, the preview will change as you move within the list, no need to press enter every time.

jstkdng commented 1 year ago

hey, I have developed a drop in replacement for ueberzug with additional features. https://github.com/jstkdng/ueberzugpp

I have tested this software with it and it works but not without disabling ueberzugpp's image caching. Would you be interested in adding support for my project?

xlucn commented 1 year ago

@jstkdng Thanks for this!

Just tested ueberzugpp and it works in my fontpreview script really well with --no-cache option, as you mentioned "disabling image caching".

Since it's a drop-in replacement of ueberzug, I think I can quite easily support it by first looking for existing ueberzugpp and having ueberzug as a fallback. Will do it soon.