digabi/mathquill

Implement undo & redo feature

Closed this issue · 3 comments

m1ksu commented

The lack of an undo function is an obvious flaw in Mathquill as every wrong or accidental keypress risks the user losing their mathematical expressions. To save on the frustration such a thing causes, the addition of an undo and redo feature would be highly appreciated.

This has been on open issue on the main Mathquill repository for almost 11 years now. A few people have voiced their frustrations and shared their own implementations for the feature on it: mathquill#5.

Perhaps one of these (or an original implementation) could be implemented into the Digabi project's fork of Mathquill?

Undo is already implemented in the examination system.

m1ksu commented

It is not implemented within the equation editor itself, which is why I initially opened the issue on this repository instead of the rich-text-editor repository.

Demonstration of the issue:
undo

The expected behaviour would be for CTRL+Z to undo the latest action, that is to bring the cut LaTeX back.

All the previous versions of the equation are stored in the version history if somethin terrible happens. We know it is not as convenienient though. We are happy to accept a pull request if you have the will to implement it.