klonk
local-history
klonk | local-history | |
---|---|---|
7 | 2 | |
217 | 223 | |
- | - | |
4.7 | 0.0 | |
23 days ago | 6 months ago | |
Java | TypeScript | |
GNU General Public License v3.0 or later | MIT License |
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...
local-history
-
Dura: You shouldn't ever lose your work if you're using Git
I just checked, it looks like there is a VSCode plugin that does this: https://marketplace.visualstudio.com/items?itemName=xyz.loca...
Repo here: https://github.com/zabel-xyz/local-history
-
Why is it so hard to see code from 5 minutes ago?
this looks like it does that https://github.com/zabel-xyz/local-history
not super polished nor is it actively maintained but has promise
What are some alternatives?
gundo.vim - A git mirror of gundo.vim
git-autosave - An experiment in automatically backing up the working directory in a git repository whenever a file changes.
undo-tree
codemkin - [Moved to: https://github.com/NicholasLYang/codemkin]
undotree - The undo history visualizer for VIM
diodon - Aiming to be the best integrated clipboard manager for the Unity desktop
Atom - :atom: The hackable text editor
doomemacs - An Emacs framework for the stubborn martian hacker
dura - You shouldn't ever lose your work if you're using Git