Undotree in fzf-lua #2461
ibhagwan
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
|
Hi! Thanks for this great feature. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Admittedly, I didn't see much value in the undotree I sort-of assumed if I used
ua few times and made some changes the earlier changes are lost, afterundotree pluginwas merged upstrream I realized I was wrong and it was really nice to have and be able to access the undo history,. However, I didn't like the ansi graph visualization as I find it confusing and non-intuitive, more so navigating the tree changes the current buffer and causes some LSP's to lose their bearing.Introducing
:FzfLua undotree, which comes with a builtin previewer for the diff as well as a default<F8>toggle to see the original file state:After pressing

<F8>we can see the state of the file instead of the diff:Alternatively, we can use the native previewer to see the diff paged into git-delta (if installed will be detected automatically):
Note
By default the cursor will be pointed at the current position in the undotree, set
locate=falseoption to disable:Set the options in
setupunderundotreefor permanency:Beta Was this translation helpful? Give feedback.
All reactions