New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undo behaviour #3
Comments
To make matters worse, there are considerations about state changes that should occur upon undo or redo.
|
Now that I am working on undo/saved behaviour the "revert" style of undo seems quite attractive, but then without treating undo/redo as actions unless you mutate afterwards (to allow exploring the undo history). The reason "revert" undo is nice with this is that the undo history is strictly growing, so there is no risk of re-using the undo index marked as saved. |
The last solution mentioned above has now been both chosen and implemented. Refer to the code for History for the implementation of it (which may well be more readable than the convoluted mess of an explanation above). If you have any issues with this, complain in a new issue. |
There is some debate over undo behaviours. The options (I currently know of) are:
Aside from simple (which is currently imlemented) the behaviours enable accessing every state the application has been in during this session.
I don't have strong opinions, if someone is gifted with such please opine and/or share PRs here.
The text was updated successfully, but these errors were encountered: