Live data from Hacker News

How to lose your work using Undo Copy in Windows

mihai.fm

61–70 of 110 posts

Re: How to lose your work using Undo Copy in Windows

#61
post #36

You know what's even more awesome? Select the desktop and press Ctrl+Z. The last thing you did in Explorer gets undone. Even if it was copying a 100GB file from a network share drive onto your local hard drive. Even if that was weeks ago. It's fantastic.

Yeah because the desktop is just a special File explorer view.

Re: How to lose your work using Undo Copy in Windows

#62

It should be noted that files can often be recovered if you notice soon after accidentally deleting them. You need a file recovery tool that understands your file format (Recuva is a pretty good free tool) but you can save yourself hours of work if you act quickly. These tools rely on the fact that Windows (and most other operating systems) don't zero out the filesystem when deleting files. This means that the file c…

There is one more thing that you can do after unplugging your machine: Image the whole disk to an other one, and try recovery methods on that one. So even if you mess something up, you can try and try again.

Re: How to lose your work using Undo Copy in Windows

#63

Jetbrains IDEs have a "Local history" feature that is not well known. It watches local files and keeps a backup of previous versions of a file, independently from version control. This has saved me from a few accidental unrecoverable changes. git reflog is also your friend.

Iirc VS Code also added that feature last year.

And Vim will also let you go back to any prior state as long as you still have the file open. You can go back to a specific date/time, revert the last 5 minutes etc.

Re: How to lose your work using Undo Copy in Windows

#64

"Undo copy" seems like it should not even exist. Delete does the same. Seems like the result of trying to hard to "improve" the UI.

It makes sense if you accidentally paste somewhere to immediately be able to undo. But, just like in a text editor, undo should undo the most recent change. Once a copied file has edits, the copy operation isn't most recent, so that's not what should be undone. Of course, file explorer would need to be aware of changes to files it hadn't made for this to work.

Re: How to lose your work using Undo Copy in Windows

#66
post #7

A similar annoyance is the fact that excel's undo applies to all open excel files. Make a change in a.xls, make a change in b.xls. if you ctrl-z twice with b.xls focused, it'll undo both of the above changes! This has bitten me more than once. Does anyone actually want this behavior?

I haven't used Excel much in the past decades but I'm surprised to see the undo behaviour remaining unchanged. Next time you tell me 1904 date formatting is still a thing...

Excel is the archetypal backwards compatible program.

Re: How to lose your work using Undo Copy in Windows

#67
post #36

You know what's even more awesome? Select the desktop and press Ctrl+Z. The last thing you did in Explorer gets undone. Even if it was copying a 100GB file from a network share drive onto your local hard drive. Even if that was weeks ago. It's fantastic.

Does it at least show a confirmation prompt?

Haha you'd think so but nope. I found this out by hitting Ctrl+Z while editing a Word document, no realizing I'd accidentally clicked on the desktop. Next minute, the 14GB VM image that I'd copied to my local machine a week ago was missing.

Re: How to lose your work using Undo Copy in Windows

#68

I treat every file that's important to me the same when I have to edit it, I hit save first, then edit what needs attention. After making any change more then a few minutes of work, hit save. Undo is always the last option. I am a terribly slow typist, so this is a habit I formed many years ago.

That would not have helped you in the case described in the article.

Re: How to lose your work using Undo Copy in Windows

#70

"Undo copy" seems like it should not even exist. Delete does the same. Seems like the result of trying to hard to "improve" the UI.

It's actually easy to copy files by accident in windows. Although I think they should prompt the use about whether they want to copy the file rather then add a undo operation.
Post reply on HN