gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Use something like w3m to show preview of images

Open yagarea opened this issue 2 years ago • 2 comments

Use something like w3m to display image previews. Ranger has it and it is nice.

yagarea avatar Jun 09 '23 10:06 yagarea

a few links would be appreciated. i know neither w3m nor ranger. googling for w3m returns an ancient sourceforge repo for a terminal based web browser. I doubt you want gitui to ship that?

if you a terminal image preview there is a rust solution: https://github.com/atanunq/viu

I am open for PRs for that. but its no high priority for me ATM

extrawurst avatar Jun 19 '23 12:06 extrawurst

It's not so easy. The problem is there are at least a few protocols and not all of them will be supported currently by viu. I've seen quite good solution in yazi terminal file manager, but I am not in internals. In some cases it uses ueberzug++, in some other support is build in (maybe it uses viu, but I'm not sure).

Anyway, I agree it's low priority. Mainly you store texts in git, not images.

kriestof avatar Nov 30 '23 22:11 kriestof