This adds a new undo/redo system that allows for undoing predictions as well as text changes made by the user, all while being aware of prompt chunks. To be honest, I don't like having to reinvent the wheel, because I bet my implementation will be worse than what is done by the browser, but I don't have any clue on how I could leverage the browser undo to achieve a result like this. I guess it's just impossible.
Fixes #27
This adds a new undo/redo system that allows for undoing predictions as well as text changes made by the user, all while being aware of prompt chunks. To be honest, I don't like having to reinvent the wheel, because I bet my implementation will be worse than what is done by the browser, but I don't have any clue on how I could leverage the browser undo to achieve a result like this. I guess it's just impossible.