2 ms·
I agree that this is an annoying issue, but doesn't your version control take care about undoing things like that?
by adrianN 11y ago
I agree that this is an annoying issue, but doesn't your version control take care about undoing things like that?
- swang 11y agoGenerally yes. Basically there are a lot of ways to mitigate the problem this causes, but atom could just do what every other editor does and not add this risk into my workflow.
- notalaser 11y agoWell, I mean technically, your version control could take care of it even after the editor would save the file after every keystroke. "Ooops, I didn't mean to do that" is one of the primary reasons why "Undo" was invented. It's something that should be fixed in the editor, not offloaded to the version control system, especially since there's no reason to assume that every single plain text file you'll ever edit is under version control.
- dragandj 11y agoOnly if you stash every single keystroke.
- Matt3o12_ 11y agoI don't really use version control for text because it is often pointless (how helpful are one or two commits when I will never touch the text again after getting graded). And yet I still use More tradition text ediots for that (WYSIWYG editors can get really annoying). Though i personal vim over atom but that is not the point. The point is that undoing things is really important. I've also often been in a position where I do big commits that contain about 200 lines of code and messed up by using replace/etc in the wrong way
- yAnonymous 11y agoYou can add files to the index before doing find/replace and then go back to that if something goes wrong. When you only add files to the index right before you commit, you are wasting a lot of your VCS' potential.
- Matt3o12_ 11y agoI sometimes do that for as a kind of backup, when there is a chance that something disastrous could happen but that requires that I use a version control system (which is pointless for text documents with less then 2000 Words IMO) or that I remember doing that. Because once I add files to the index, i might as well create a commit and squash it later.