simplify undo system #1

Closed
opened 2026-06-28 16:17:48 +02:00 by LevitatingBusinessMan · 1 comment

Lines 9 to 18 in 242ffb9
/**
* NOTE
* I had a new idea that I could use "Absolute" messages for undo/redo.
* They would just say "insert this at position x", or "delete this range"
* This would work because the state is always known. Something similar
* to this would also be necessary for tree-sitter (marking portions of the source as updated).
*
* The current implementation is over-complicated, require a specific "relative"
* undo action for each do action.
*/

https://git.levitati.ng/LevitatingBusinessMan/atto/src/commit/242ffb9aebc25abb494f76a6a0875c21fb066ed9/src/undo.rs#L9-L18
Author
Owner

I think the current system is really fine. I just need to clear up some of the Message names.

I think the current system is really fine. I just need to clear up some of the Message names.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LevitatingBusinessMan/atto#1
No description provided.