mortii / anki-morphs

A MorphMan fork rebuilt from the ground up with a focus on simplicity, performance, and a codebase with minimal technical debt.
https://mortii.github.io/anki-morphs/
GNU Affero General Public License v3.0
61 stars 9 forks source link

Ctr-Z doesn't undo last action #15

Closed Vilhelm-Ian closed 1 year ago

Vilhelm-Ian commented 1 year ago

I pressed K on a card. And wanted to double check if I knew the word and i wasn't able with ctrl+z

mortii commented 1 year ago

Yeah, that is the "Fix undo-review" item on the roadmap.

mortii commented 1 year ago

I'm making good progress on this. My previous assessment (https://github.com/kaegi/MorphMan/issues/302) was pessimistic, but I found an amazing ankiweb thread that has made it much easier.

One caveat is that the new undo system only works for the v3 scheduler, but that is actually a blessing in disguise because I can now stop supporting v2 and just display an error if someone is using it.

mortii commented 1 year ago

My pessimism was warranted, fixing this was a nightmare, lol. There is a known bug I can't fix, but it should be rare enough to not cause any major problems. One thing to keep in mind is that the undo queue breaks/is reset after a recalc.

mortii commented 1 year ago

Let me know if any other problems occur!

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.