Open ErrorNoInternet opened 8 months ago
Unfortunately, tmux does not allow pass-through of image protocols. I think tmux folks want to keep things simple and avoid strange corner-cases.
The only reason it works for Kitty is some trickery, which works only really with kitty...
If you want image protocols supported in tmux, ask the developers there (but I think others tried to ask before).
https://github.com/hzeller/timg/assets/61157623/1c34e9b0-ec9f-4dc7-b816-46543d72a2a6
I got it to work by sending a few special escape sequences that https://github.com/sxyazi/yazi also sends (specifically the code in https://github.com/sxyazi/yazi/tree/main/yazi-adaptor/src), it's just that the image height isn't properly being realized by the terminal, so it cuts off things that it wasn't supposed to cut.
Interesting, so there are 'workaround sequences'. I'll re-open and will have a look when time permits.
Does timg support tmux passthrough for terminals other than Kitty? It doesn't seem to be printing anything when using it in foot + tmux
Top is tmux + yazi, middle is tmux + timg, and bottom is timg without tmux Foot only supports sixel (my timg is aliased to timg -ps)
https://github.com/sxyazi/yazi seems to support it, but I had to manually enable tmux passthrough (https://github.com/sxyazi/yazi/wiki/Image-preview-within-tmux)