Live data from Hacker News

How to lose your work using Undo Copy in Windows

mihai.fm

51–60 of 110 posts

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

#51
post #19

Undo Copy is a fine feature; there was a recent post here about clipboards and managing the cost of large copied objects. The problem here is that "undo copy" acted as "undo paste", a ridiculous bug.

For files, it's not that wrong – copying can be seen as a two step process of selecting what to copy and then where to copy it to, at which point the copy is actually performed. Undoing only the first part wouldn't undo the copy. Still, "Undo Paste" would be a clearer name.

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

#52
post #47

Earlier quoted context omitted.

Excel has several UI quirks that date back decades. It's never been consistent with the rest of Office even. If Microsoft changed it the accountants would revolt.

do you have some examples of that quirks?

You can expect data to be destroyed when automatically parsing csv/tsv (default behaviour), especially because it's dependent on the last settings used in the text-to-columns wizard.

Then there's all well-known bugs like floating point addition and locale-dependent function names and 1904 dates.

Conditional formatting accidentally pasting is all over the place.

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

#53
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?

Excel is a law unto itself. The 'feature' that irritates me the most is how a cell copy is forgotten unless you paste immediately. Bear in mind that this is an application so iconoclastic that it had its own C compiler.

This is the thing with Excel. It has such a long history that it had to invent a ton of GUI interactions. A boatload of those interactions were codified in Excel before we created standard ways of doing things that even macOS, Windows and Linux share. In that sense, the modern history of Excel is the slow regression of the app to OS conventions.

For the longest time, Excel had its own windowing system within the app. It's only recently that the Office team saw the light and let the whole OS called Windows control window management in Excel.

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

#54
post #47

Earlier quoted context omitted.

Excel has several UI quirks that date back decades. It's never been consistent with the rest of Office even. If Microsoft changed it the accountants would revolt.

do you have some examples of that quirks?

As others have mentioned, copying and pasting in Excel is bizarre. Highlight the cells to copy; select copy - the source cells now have marching ants around them; perform any action that causes the marching ants to disappear and that content can no longer be pasted. It’s as if those cells are locked as the copy buffer as opposed to some in memory copy like every other copy operation.

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

#55

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.

No amount of hitting save would have saved the author here

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

#56
post #5

This happened to me once. I thought I was doing ctrl-Z inside of an app I had been using up to a few minutes earlier, but I hadn't realised that instead a File Explorer window that was currently highlighted.

That was my first thought when reading this: how about accidentally having explorer focused when pressing ctrl-z... Good lord. Usually Linux is more on the rough, "you're a power user so you better never make mistakes" side of things, but according to that other comment, KDE's Dolphin really nailed that scenario.

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

#57

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.

And how is that relevant to the specific scenario presented in the article?

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

#58
post #24
post #11

Earlier quoted context omitted.

I ran into this issue and looked it up. It was an intentional design choice, and kind of makes sense when you realize that Excel sheets can have reference of each other -- they are not necessarily independent. Of course a lot of people probably never do that in their entire lifetime when using Excel and can feel annoying.

Sheets or docs? Within one doc, and multiple sheets makes sense, I guess. Across docs doesn’t make sense to me.

Docs.

It's for when you want to have distributed data stores.

For example, if you're building out a doc to track your net worth, income, and spending habits:

- One main sheet that collates all the data required here (e.g. credit card statements, in-flows and out-flows from bank accounts, current debts and current assets)

- Have 3 more docs:

One that collates and summarizes your credit card charges

One that collates your bank statements

One that collates your assets and liabilities

///

Let's say my "credit card charges" sheet automatically pulls in my charges over API, and appends them to the "Charges" sheet in the "Credit Card.xls." Then the "Summary" sheet in this "Credit Card.xls" summarizes this information into something useful. My "Main.xls" (that collates all of my data into something even more readable and useful) can then pull data from this "Credit Card.xls" sheet (through API or locally), and automatically keep itself updated.

I could stuff this all into one single doc, with numerous sheets, but I don't want to deal with the cognitive overhead of having to navigate through an enormous amount of sheets I rarely (if ever) need to touch (again).

Perhaps I don't even have access to the physical "Credit Card.xls" doc, because my personal assistant automatically appends to it, and keeps it uploaded somewhere.

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

#59
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?

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

#60
post #31

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…

I upvoted this response. It is very thorough and clear. (I can't attest to the veracity of the content but it seems quite logical.) I just wanted to say thanks for writing this. Clearly, these approaches, as you say, are not exactly beginner friendly, but it is great to know that they exist.

I can testify to Recuva being good for this issue. My daughter deleted all files on camera SD card 2 days ago. Popped it out right away and applied recuva on it. It recovered all the pictures as my daughter didnt take any pictures after deletion.
Post reply on HN