fleather icon indicating copy to clipboard operation
fleather copied to clipboard

[Feat.] Override default undo and redo actions to implement OT compatible undo/redo implementation for local changes

Open Lomedhi opened this issue 8 months ago • 3 comments

Is your feature request related to a problem? Please describe. Unless I’m mistaken, you cannot override the default undo/redo actions. This prevents the implementation of changes that have occurred from local only to be undone or redone and is global changes only.

Describe the solution you'd like An option for custom redo/undo implementations for potential OT editor feat.

Describe alternatives you've considered

Additional context

Lomedhi avatar Apr 28 '25 18:04 Lomedhi

@Lomedhi just to make sure I understand, you want to give the possibility to undo changes made via the controller? What do you mean by local changes?

amantoux avatar Apr 28 '25 18:04 amantoux

@amantoux Yes. And again, please correct me if I am mistaken, but the controller does have undo function but there is no further override the default setting the current document to previous state? When the delta is created it is set if the changes was locally made?

For example I would like to set the source of the undo to only local changes. It would also be part feature request to be able to disable the ctrl + z or ctrl + shift + z to only reset to deltas that were locally made?

Lomedhi avatar Apr 28 '25 20:04 Lomedhi

you didn't explain what you mean by "local changes". What is a local change. What is a global change.

graemep-nz avatar Sep 15 '25 23:09 graemep-nz