4 ms·
I don’t usually leave notes, I just leave the last thing I looked at in whatever arbitrary failure state it was in, unsaved, with whatever undo history I stoppe
by eyelidlessness 4y ago
I don’t usually leave notes, I just leave the last thing I looked at in whatever arbitrary failure state it was in, unsaved, with whatever undo history I stopped at. If the errors aren’t immediately obvious, a couple cmd-Zs is usually all it takes to jog my memory and at least start retracing my steps
- adastra22 4y agoWhat editor configuration are you using that saves undo history like that?
- senbrow 4y agoAny decent editor if you don't close it/hard power off the workstation.
- adastra22 4y agoI was assuming he meant something persistent.
- zxexz 4y agoI’m not who you’re replying to, but I hope my input will be helpful. I just use Jetbrains IDEs on projects with the IdeaVim plugin (integrates so well with the IDE, it’s pretty much my only must-have plugin for any software, beyond uBlock Origin), and Vim for external files (scripts, etc., or when I want to use a specific plug-in for editing). By default IntelliJ (PyCharm, GoLand. any Jetbrains IDE…) has a pretty large undo history, and that can be extended to however long you like. The real killer, however, is the extended local history for the file, which is arbitrarily (or at least seems to be) long. Combine that with the wonderful built-in git history (which can be a separate pane/window!), and you’ll never worry about changes you’ve made being lost, or overwriting other history, no matter how overzealous you were with said changes. I find IDEA’s built-in tools so useful I barely ever even think of using git stash or git shelve anymore (or directly calling ~30% of git commands for that matter), and those are commands for which I still have 20+ aliases for in my .bashrc.
- The_Colonel 4y agoIntellij's local history saved my ass a couple of times. Its git features are also quite comfortable. Very nice diff, I like very much the "Show history for Selection", live git annotate (with GitToolbox plugin). I don't often do rebase, but when I do the interactive rebase is also very helpful.
- eyelidlessness 4y agoClosing my laptop and leaving it on a charger. Wish I had a better answer. I use VSCode and it does restore undo history on relaunch for the most part, but I can’t remember if I configured it for that, and I definitely don’t trust or rely on it. I know it definitely doesn’t work if I accidentally invoke “reload”.
- amoss 4y agouptime 8:26 up 38 days, 9:49, 4 users, load averages: 1.59 1.51 1.60
- kqbx 4y agoundo-tree for emacs can do this. I think spacemacs enables this by default https://stackoverflow.com/questions/2985050/is-there-any-way-to-have-emacs-save-your-undo-history-between-sessions https://stackoverflow.com/questions/2985050/is-there-any-way... It really saves the whole tree, not just the path that was active at the time of exit.