wordplaydev / wordplay

An accessible, language-inclusive programming language and IDE for creating interactive typography on the web.
Other
60 stars 22 forks source link

Allow multiple node selections #177

Open amyjko opened 1 year ago

amyjko commented 1 year ago

What's the problem?

In the code editor, the Caret allows for two types of selection: an insertion index in the text buffer, or a single Node.

That's fine for many cases, but doesn't work well for cases such as:

What's the idea?

Add Node[] to Caret and handle in a reasonable way in every single place required by TypeScript. This would be a major revision, requiring utmost care and decisions about how to handle all current editing functionality.

Who benefits?

All creators who are editing a program.

Design ideas

TBD

joonpiter commented 2 weeks ago

Hi @amyjko, are you still working on this issue?

amyjko commented 2 weeks ago

Unassigned myself; I was ambitious, but still haven't gotten around to it.