Skip to content
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

Homegrown Undo/Redo stack #16

Open
matteobart opened this issue Aug 17, 2019 · 0 comments
Open

Homegrown Undo/Redo stack #16

matteobart opened this issue Aug 17, 2019 · 0 comments

Comments

@matteobart
Copy link
Owner

It seems that the TextView UndoManager, doesn't seem to work great in this project. Possibly because things are being manually added, but it seems to work well, but the logic seems a bit off from a typical text editor. Maybe worth investing in our own undo/redo logic. Be sure to carefully plan out how the logic should work before starting it. This is related to issue: #13

This would involve intercepting all changes to the TextView, including over writing keybindings (paste, undo, redo, cut).

Some reading: https://en.wikipedia.org/wiki/Memento_pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant