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:
Selecting a subsequence of a list of nodes (e.g. a set of statements in a block, part of a list literal)
Selecting multiple expressions from disparate places
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.
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 singleNode
.That's fine for many cases, but doesn't work well for cases such as:
What's the idea?
Add
Node[]
toCaret
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