yi-editor/yi

Feature request: multi-cursors

stites opened this issue · 3 comments

Maybe @ChrisPenner could give some pointers (pun intended) regarding how this was done in rasa? I wrote a little function actionOnLeft which I think might be a good start, but it was a little painful to write and seems inefficient.

This was built in rasa as a consideration from the start; I have several ideas on how this can be implemented; but it's probably going to be clunky going into any system as a secondary concern.

Interesting - can you go over some of your thoughts / ideal architectures? I was thinking of prototyping something out, but it sounds like this is the kind of feature where too much hacking might entrench bad design.

For future reference, primitive multi-cursors are implemented, but only locally in the vim keymap:

, vsSecondaryCursors :: ![Point] -- TODO: these should live in a buffer, just as the main cursor does