Closed typkrft closed 1 month ago
ZELLIJ_SESSION_NAME: None
Are you sure you are in Zellij? Why is your ZELLIJ_SESSION_NAME
is None
?
What does echo $ZELLIJ_SESSION_NAME
say? In my Zellij I have this output
❯ echo $ZELLIJ_SESSION_NAME
curious-muskrat
❯ zellij -V
zellij 0.40.1
I am in fact using zellij. Looks like I ran the debug outside of zellij though. Sorry about that.
> echo $ZELLIJ_SESSION_NAME
tremendous-piano
> zellij -V
zellij 0.40.1
Updated debug and logs:
Adapter
Adapter.matches: Sixel
It looks like Yazi has selected Sixel as the image format correctly. Have you tried other tools that can work in Zellij (for example chafa -f sixels my-image.jpg
)?
I saw that too. Chafa does work outside of zellij, but not inside. Maybe this is a zellij issue?
chafa xyz.png
does not output a picture but does emit what look like escape codes. Can you take a screenshot?
Yazi in Zellij
yazi not in zellij
Chafa not in zellij
Chafa in zellij
chafa fzf in zellij. Not sure why my preview size is small. but pictures do work and I can scroll it.
chafa fzf in zellij
Can fzf
show the backend information it uses? Something like Yazi's --debug
parameter.
From the screenshot, it seems that the images have some obvious pixelation; this looks more like ASCII art than Sixel. You should also be able to get it by running NVIM_LOG_FILE=1 NVIM=1 yazi
with Yazi.
Also there's another tool that can help debug the sixel support of Zellij called timg
(https://github.com/hzeller/timg), does timg -p sixel my-image.jpg
work inside Zellij?
timg -p sixel ~/Downloads/untitled\ folder/yarrah-puppy-choice-costs-and-food.jpg
does not work in zellij. It appears to hang and then return to prompt. timg ...
does work.
I was unable to get any debug information from fzf. Maybe I misunderstood something. I do believe it's using chafa though.
In that case I think it's likely a bug with Zellij itself as Yazi uses the same Sixel code both inside and outside of Zellij and correctly identifies Sixel as the backend, so there's no reason it should only work outside Zellij.
I'm not sure if there's anything Yazi can do about it, I suggest you open an issue with Zellij so their developers can look into it. Feel free to tag me if I can help in any way.
Closing as not Yazi.
Agree. And will do. I think implementation of sixel in zellij is on going. Thank you for the assistance. All the best!
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
What system are you running Yazi on?
macOS 14.5 (23F79)
What terminal are you running Yazi in?
20240203-110809-5046fc22 aarch64-apple-darwin
yazi --debug
outputDid you try the latest nightly build to see if the problem got fixed?
Yes, and I updated the debug information above (
yazi --debug
) to the nightly that I triedDescribe the bug
Yazi images work in wezterm using the default protocol. However zellij only uses sixel. Wezterm has support for sixel, but doesn't use sixel in yazi.
I could also have missed something in the options. I did look through some of the documentation I thought might be relevant. However I haven't set any configuration at all as of now. Is there a way to select a image protocol for terminals that support multiple? I also have chafa installed.
Expected Behavior
Show image previews in zellij.
To Reproduce
Configuration
no config
Anything else?
No response