termit
termit copied to clipboard
Add support for undo
Add undo feature using a stack to track changes.
Ideal solution: Changes should be tracked per character pressed or per control key used (delete, backspace, line cut/insert etc). Position in document must also be tracked to be able to undo at the correct position.
Alternative, but less desirable solution due to memory usage: If ideal solution proves impractical or impossible, an alternative is to just store the entire content of the changed line as it was before the change, kind of like in a diff type situation.
Hey! Can I work on this?
@Reza9472 Sure! Thank you for your help 😀