-
Notifications
You must be signed in to change notification settings - Fork 0
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
Plugin to visualise and navigate the undo tree #21
Comments
There is also vim-mundo (a fork of gundo) which I'm using. NOTE: it requires python |
and which is kinda slow, a Lua plugin is very welcome in this department. |
Also, vim-mundo asks for python (which I do not use). |
undotree sets the bar here IMO (and is what I use). |
In my experience the speed of undotree is fine. (And I agree with the skepticism, I'm not a fan of rewriting or creating new Lua plugins just to say they're in Lua, they should also be better than the existing best, if only by being feature equivalent but being more maintainable not being vimscript. My point was just to share what I think the best current example is here :) |
It would be nice to have something like this as an extension to Telescope with a preview of changes. |
https://github.com/simnalamburt/vim-mundo has the awesome "search in undo history" feature, which I think is a must have of a lua rewrite (for perf reasons). see also mbbill/undotree#48 Unfortunately telescope has no "save search result state" to dump and load last state of the search window, which I feel would be a must have to search + navigate the search history on tracking down changes in multiple branches (traverse along the branch + keep searching in this branch etc). The other thing I am not sure about, is if the visualization in telescope of the tree during search is simple enough to adjust. |
https://github.com/debugloop/telescope-undo.nvim I've written something that checks some of these boxes, take a look :) |
After reading this post: And to extend this, I've been thinking about having a kind of preview like this for the current line of code, or the current function.. Where the undo-tree is filtered to only show the changes that actually changes that line, function.. I'm not sure how we could find all related change for a set of lines, to work for renamed functions/class/.., 'might' be possible by finding the change that did a rename, but it's not easy. |
What?
A way to visualise and navigate the undo tree.
Why?
See above.
Potential existing implementations:
gundo.vim
Potential pitfalls:
The text was updated successfully, but these errors were encountered: