Closed fapdash closed 5 months ago
M-: (setq buffer-undo-list nil)
is a heavy hammer that works. I sometimes reach for it when history is too deep. I do still wish for a command to specify a time frame (e.g. two weeks) and remove anything on the undo list "older" than that. That would only work for buffers which had been saved to file.
If you really need it, it shouldn't be hard to write a command that truncates the undo history by date.
Shouldn't be just need to find a bit of time. A better fix is #106, then I wouldn't feel the need so often.
@jdtsmith Thank you, M-: (setq buffer-undo-list nil)
was exactly what I was looking for! :)
OK it actually wasn't too hard; give #111 a try.
Is there a way to throw away all undo/redo history information for the current buffer?
I try to do this in the following scenarios:
Of course this would also help for https://github.com/casouri/vundo/issues/68.