Skip to content

Added kitty multicursor support#14

Merged
the-mikedavis merged 9 commits intohelix-editor:masterfrom
jonbitgood:master
Mar 26, 2026
Merged

Added kitty multicursor support#14
the-mikedavis merged 9 commits intohelix-editor:masterfrom
jonbitgood:master

Conversation

@jonbitgood
Copy link
Copy Markdown
Contributor

Added CSI > parameter prefix parsing to support kitty multi-cursor protocol query responses.

Needed for helix-editor/helix#14757

Copy link
Copy Markdown
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Querying for support should also be covered with a type in these changes. Helix should never write any explicit OSC or CSI commands

Comment thread src/escape/csi.rs Outdated
Comment thread src/escape/csi.rs Outdated
Comment thread src/escape/csi.rs Outdated
Comment thread src/escape/csi.rs
Copy link
Copy Markdown
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good, thanks!

I pushed some edits to align with the existing code a bit more. I'm very opinionated on how termina should expose protocols to consuming applications: we should try to hide protocol specifics like the values for each escape sequence within the impl Display as much as possible. To that end I removed a few sections here of TryFrom unless it was used by the parsing module, and the functions that exposed the protocol values as u8s.

I'll cut a new release with this now and take another look at the branch in Helix 👍

@the-mikedavis the-mikedavis merged commit 75de592 into helix-editor:master Mar 26, 2026
6 of 9 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.

2 participants