3 ms·
But what is a good structure for modern text editors in 2024? Nowadays text editors need to keep track of git commits (by whom, when, which line(s)), reference
by behnamoh 3y ago
But what is a good structure for modern text editors in 2024? Nowadays text editors need to keep track of git commits (by whom, when, which line(s)), reference and footnotes (the author mentions Markdown's manual [^...] notation but ideally you'd want something automatic—even latex isn't automatic by default), etc.
- kragen 3y agothe best writing i've found on that topic is https://xi-editor.io/docs/rope_science_00.html https://xi-editor.io/docs/rope_science_00.html
- bjoli 3y agoRRB-trees will give you an immutable data structure with pretty darn ok random access and insertion, and free undo/redo. Not only that, multiple cursors is simple.