33 ms·
I started using PC in WinXP era, so vim's multi-undo wasn't very surprising to me. But when I first learned about undo tree - it blew my mind in pretty much the
by archargelod 3y ago
I started using PC in WinXP era, so vim's multi-undo wasn't very surprising to me. But when I first learned about undo tree - it blew my mind in pretty much the same way.
If I'm not mistaken, undo tree in 2023 is still almost an exclusive feature of vim, even the most popular IDE - VScode doesn't have a way to recover state before undo + typing, aka GURQ https://github.com/zaboople/klonk/blob/master/TheGURQ.md https://github.com/zaboople/klonk/blob/master/TheGURQ.md
- gpvos 3y agoOh, multilevel undo was something that was not hard to fathom and that I yearned for for years. It was the concept of a composite action (edit, move to somewhere else, edit something) while not leaving insert mode that just didn't fit into my idea of what vi was. Would a single undo step undo only one part of that or all of it?
- aulin 3y agoEmacs had undo tree since as long as I can remember
- gpvos 3y agoYes, and I still get lost in it, it's one of Emacs' most confusing features.
- nequo 3y agoThe built-in undo[1] in Emacs is confusing but I think parent means the undo-tree package.[2] The package is super intuitive, you navigate the tree with the arrow keys and you can pull up the diff of each change if you want to. [1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Undo.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Un... [2] Here is a screenshot from 11 years ago: https://www.emacswiki.org/emacs/UndoTree#h5o-5 https://www.emacswiki.org/emacs/UndoTree#h5o-5
- aulin 3y agoNo, I meant the built in one... Not sure why is it confusing always just worked for me. Thought vim undo was similar, maybe I was mistaken.