termit icon indicating copy to clipboard operation
termit copied to clipboard

Add support for undo

Open hakash opened this issue 4 years ago • 2 comments

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.

hakash avatar Oct 04 '21 12:10 hakash

Hey! Can I work on this?

Reza9472 avatar Nov 09 '21 15:11 Reza9472

@Reza9472 Sure! Thank you for your help 😀

hakash avatar Nov 09 '21 16:11 hakash