benjajaja / ratatui-image

Ratatui widget for rendering image graphics in terminals that support it
https://crates.io/crates/ratatui-image
MIT License
96 stars 14 forks source link

Ability to preview images in tmux #22

Open BigBrotherJu opened 5 months ago

BigBrotherJu commented 5 months ago

Image preview in tmux is doable for kitty using unicode placeholder, not sure about other terminal emulators.

Currently, tmux(3.4) image preview is not working in joshuto(0.9.8)+kitty(0.33.1). The preview column does not display anything.

benjajaja commented 4 months ago

Should work with #19, I will make a PR on joshuto.

benjajaja commented 1 month ago

made a PR https://github.com/kamiyaa/joshuto/pull/553

ErrorNoInternet commented 2 weeks ago

Hi, I'm still not seeing anything in tmux 3.4 + kitty 0.36.1 on the main branch (297efaa75f082fee3d6741f53370fd00782e5244) of joshuto and iamb 0.0.10.

When I select a message in iamb, the image gets highlighted too, but I still can't see the actual image.

image

Nemo157 commented 1 week ago

I think the \x1bPtmux etc. modifications need to be applied to the string generated in kitty::transmit_virtual, at least it looks like kitten icat is doing something similar when I inspect its output.