Same view, multiple cursors? #1694
Replies: 1 comment
-
|
Good question! You are right that the current Bubble Tea API only supports a single cursor per view through CursorMode and the Cursor field in the model. For multiplayer text editing with multiple cursors, here are a few approaches:
The Loro integration you mentioned is interesting - for the data layer, Loro handles the CRDT sync. On the rendering side, Bubble Tea would need to render multiple visual cursors as part of the view rather than relying on the single hardware cursor. This could be a good feature request issue if you want to propose adding multi-cursor support to the View API. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for all the work, v2 is rad!
Are multiple cursors on a single view possible? I'm playing around with multiplayer editing of text.
I realise now that on the same view, only a single cursor is possible with the current API.
Ref: https://sw.kovidgoyal.net/kitty/multiple-cursors-protocol/
Beta Was this translation helpful? Give feedback.
All reactions