Skip to content

Making kitty icat work in tmux popup #7165

@junegunn

Description

@junegunn

Is your feature request related to a problem? Please describe.

Currently, kitty icat does not work inside a tmux popup.

Error: Terminal does not support reporting screen sizes in pixels, use a terminal such as kitty, WezTerm, Konsole, etc. that does.

This is probably due to a limitation of the tmux popup implementation. It doesn't report the correct pixel sizes.

tmux popup 'kitty icat --print-window-size'
  # Gives 0x0

Describe the solution you'd like

However, tmux does know the pixel size of a cell even from inside the popup.

tmux popup 'tmux display -p "#{client_cell_width}x#{client_cell_height}"'
  # Gives something like 17x37

(See tmux/tmux@067604b)

So maybe we could pass the information to kitty icat (e.g. something like kitty 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions