undotree icon indicating copy to clipboard operation
undotree copied to clipboard

Visual mode support for undotree

Open ghost opened this issue 1 year ago • 2 comments

It would be great to be able to select a chunk of text (via the VISUAL modes) and for undotree to only undo changes in that selected part of the file.

For example this would probably work well with functions/classes/etc to only undo changes that were made to that specific structure.

ghost avatar Mar 31 '24 07:03 ghost

This would be kind of like a poor-mans git where you don't want the overhead of committing small chunks of text when you just experiment.

ghost avatar Mar 31 '24 07:03 ghost

that's a great idea, but seems a bit difficult to implement with how the undo system works in vim

mbbill avatar Apr 01 '24 18:04 mbbill