Skip to content
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

Fix kitty protocol within tmux, and improve its handling #39

Merged
merged 6 commits into from
Sep 15, 2024

Conversation

Nemo157
Copy link
Contributor

@Nemo157 Nemo157 commented Sep 13, 2024

I can split this up if needed, but there's a few overlapping changes that lead to conflicts so I thought it was easier to put into one PR.

The first commit (probabilistically) avoids issues with having multiple applications rendering images, previously they were almost guaranteed to use overlapping ids since they all started from 1 and only had 255 ids available. Now the full u32 support from the protocol is used with a random starting point so it's unlikely to overlap.

The second commit fixes #22, the kitty-protocol escape sequences are now wrapped in tmux-passthrough escapes if needed.

The third and fourth fix issues I noticed while debugging issues and reading the spec.

The fifth and sixth are minor performance improvements.

@benjajaja
Copy link
Owner

I can't thank you enough for this! This is so good in so many ways!

@benjajaja benjajaja merged commit 7192679 into benjajaja:master Sep 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to preview images in tmux
2 participants