-
-
Notifications
You must be signed in to change notification settings - Fork 980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making kitty icat
work in tmux popup
#7165
Comments
This is clearly a bug in tmux, with a trivial fix there. I suggest |
I understand. And, thank you for the patch! |
Update: I've installed Kitty nightly and tested # Works
kitty icat --clear --transfer-mode=memory --unicode-placeholder --stdin=no --place=202x13@0x0 --use-window-size=202,13,3434,481 $PWD/fzf.png
# Doesn't display the image
tmux popup -w 202 -h 13 "kitty icat --clear --transfer-mode=memory --unicode-placeholder --stdin=no --place=202x13@0x0 --use-window-size=202,13,3434,481 $PWD/fzf.png" I believe this is an issue of the tmux popup not of kitty. Thanks for the help. One more thing. This is a user error, but icat fails with
|
Is your feature request related to a problem? Please describe.
Currently,
kitty icat
does not work inside a tmux popup.This is probably due to a limitation of the tmux popup implementation. It doesn't report the correct pixel sizes.
Describe the solution you'd like
However, tmux does know the pixel size of a cell even from inside the popup.
(See tmux/tmux@067604b)
So maybe we could pass the information to
kitty icat
(e.g. something likekitty icat --cell-size 17x37 ...
) and make it work even with the current limitation of tmux popup.Describe alternatives you've considered
Ideally, we could report the problem to the tmux team and wait for the fix. But they don't seem to be as responsive and cooperative as you are, so I'm contacting you first to see how you feel about the workaround.
The text was updated successfully, but these errors were encountered: