Group similar operations together in the undo stack
Opened this issue · 0 comments
MartinGC94 commented
Each individual keystroke entered is registered as one action in the undo stack so if I type in a word like "Get" I need to press undo 3 times to undo this action (once for each letter).
It would be nicer if I could undo individual segments, like entire words. The easiest way to recognize individual segments would probably be to keep track of the recent inputs and commit them as a group to the undo stack when the next character is whitespace, newline, etc. or if the cursor is moved.