Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual mode support for undotree #180

Open
ghost opened this issue Mar 31, 2024 · 2 comments
Open

Visual mode support for undotree #180

ghost opened this issue Mar 31, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 31, 2024

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
Copy link
Author

ghost commented Mar 31, 2024

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 ghost changed the title Visual mode for undotree Visual mode support for undotree Mar 31, 2024
@mbbill
Copy link
Owner

mbbill commented Apr 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant