theRealProHacker / Positron

With Positron you can create your own desktop app using just HTML and Python
2 stars 1 forks source link

Text selection and text-cursor #51

Open theRealProHacker opened 2 years ago

theRealProHacker commented 2 years ago

We need support for a set of movable cursors with selections. When pressing on text, the cursor should appear at the correct position.

Mostly this includes keeping track of where the cursors currently are, both logically and physically (bi-directional text) and moving the cursors with mouse and keyboard. For this we need to find a good data structure to save the cursors data, we need to have a bi-directional physical position to logical position and we need correct error handling when for example text gets deleted programmatically while a cursor is pointing to that text.