ankitects / anki

Anki's shared backend and web components, and the Qt frontend
https://apps.ankiweb.net
Other
18.88k stars 2.14k forks source link

Consider our own undo/redo stack for the editor #3339

Open dae opened 3 months ago

dae commented 3 months ago

Currently certain operations do not undo correctly, or clear the undo history.

Most recent report: https://forums.ankiweb.net/t/in-editor-keyboard-undo-redo-breaks-with-formatted-text-and-loses-history-when-field-unfocused-and-refocused/47688

lukesbart commented 2 months ago

I would like to take on this issue.

dae commented 1 month ago

This is quite an involved changed, and would need to start with a proposal for how it could be implemented, and what changes would be made. It's not something that would be easy for people new to the codebase to pick up, so I'd recommend you look at other lower-hanging fruit unless you're confident that you can handle this.