klonk
gundo.vim
klonk | gundo.vim | |
---|---|---|
7 | 2 | |
217 | 1,470 | |
- | - | |
4.7 | 0.0 | |
23 days ago | over 2 years ago | |
Java | Vim Script | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
klonk
-
Undo done the right way!
While surfing the web I came across this blog post: Resolving the Great Undo-Redo Quandary.
- Resolving the Great Undo-Redo Quandary
-
Hacker News top posts: Nov 11, 2022
Resolving the Great Undo-Redo Quandary\ (31 comments)
-
Why is it so hard to see code from 5 minutes ago?
My goofy lil' homemade editor does it this way: If you go back in the past and change it, the future becomes the past. This might sound confusing, but effectively it means that the undo stack contains the actual history of "what happened". This means you can hop to any past or future state linearly with undo & redo alone. I just find this easier than navigating tree GUIs and things that aren't worth the trouble to me. It can still lead to a bit of mental gymnastics in extreme cases.
https://github.com/zaboople/klonk
Note that in theory this can cause an exponential growth of the undo/redo stacks because it makes an upside-down copy of the future when you change the past; but in practice it's never been an issue.
I was thinking of adding a feature to navigate back to "last change-the-past", which wouldn't be hard.
It at least makes more sense than most science fiction time-travel plots...
gundo.vim
-
Piece of mind for a reddit noob.
Using a plugin like undotree (or Gundo, or Mundo) to visualize the edit history is by far the most practical solution to OP's problem, and I'm shocked you're the only person to suggest it.
-
Why is it so hard to see code from 5 minutes ago?
For those that use vim, gundo.vim visualizes the "undo-tree" and allows you to preview / jump to any revision: https://github.com/sjl/gundo.vim
What are some alternatives?
undo-tree
undotree - The undo history visualizer for VIM
codemkin - [Moved to: https://github.com/NicholasLYang/codemkin]
vim-mundo - :christmas_tree: Vim undo tree visualizer
diodon - Aiming to be the best integrated clipboard manager for the Unity desktop
xray - An experimental next-generation Electron-based text editor
doomemacs - An Emacs framework for the stubborn martian hacker
StyleCopAnalyzers - An implementation of StyleCop rules using the .NET Compiler Platform
local-history - local-history for vscode