I need to work on making the cursor position more intuitive after undoing, it jumps to unexpected spots rather often.
Next is redo, and deleting undo history when we start typing again.
I need to work on making the cursor position more intuitive after undoing, it jumps to unexpected spots rather often.
How long it took me to implement undo and then refactor to prepare for redo, and remove some arbitrary code barriers.
How long it took me to implement undo and then refactor to prepare for redo, and remove some arbitrary code barriers.
Next is redo, and deleting undo history when we start typing again.
Next is redo, and deleting undo history when we start typing again.
I'm thinking the piece table already has the pieces, instead of throwing them away and rebuilding them constantly, I think I'll just keep copies around of the pieces array and move backwards/forwards for the undo/redo.
I'm thinking the piece table already has the pieces, instead of throwing them away and rebuilding them constantly, I think I'll just keep copies around of the pieces array and move backwards/forwards for the undo/redo.
Fun journey of learning how to write memory safe Odin.
It's actually not that hard. Why are people afraid of languages with manual memory management?
Fun journey of learning how to write memory safe Odin.
It's actually not that hard. Why are people afraid of languages with manual memory management?
greduan.com/blog/2024/10...
greduan.com/blog/2024/10...