Live data from Hacker News

How to lose your work using Undo Copy in Windows

mihai.fm

71–80 of 110 posts

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

#71
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 an MDI app pretending to have one document per window. It still has the unified undo buffer from that architecture.

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

#73
post #38
post #25

I tested to see what some popular Linux file managers do in this scenario, GNOME Files and KDE Dolphin. Neither of them have undo in the right-click menu. Pressing ctrl+Z pops up the standard "Do you want to permanently delete this file?" confirmation dialog. Dolphin goes one step further, if you say yes to the confirmation dialog, it shows an additional one: "The file (copy) was copied from (original), but since the…

The KDE project does not produce perfect software, but they have attention to details. They are also eager to receive user feedback and to reverse decision after complains. They listen. The last post of Adventures in Linux and KDE is a good example of this: https://pointieststick.com/2023/05/11/plasma-6-better-defaul...

Agree. While not perfect, they are the best of the DE crop today for my purposes, compared to Gnome, OSX and windows.

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

#74
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.

One program that does copying right IMO is tmux, it keeps a list of recently copied things, which you can view by pressing Ctrl-B = and choose which clipboard to paste.

Very useful when you need to copy multiple separate strings without going back and forth between windows. I've caught myself doing optimistic copying - if I see something that i might need to paste in the future, like git commit hashes, file names, etc. I just copy them all and store them in the clipboard list.

I think there is a program "clipmenu" which does this for X11, but haven't used it too much.

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

#75
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.

Own C compiler? IIRC, that's not quite true. I worked on the C/C++ compiler team at Microsoft from 1991 to 2007, and I don't remember us producing a drop of the compiler just for Excel. I do think there was a special compiler flag for them, though, that fixed the order in which global variables were laid out to duplicate the source order. It was either Excel or Word that saved state by taking the addresses of the first and last global variables of interest, then dumping all memory in that range to disk. The flag was something like -bzalign. The bz stood for Bozo, which hints at the compiler team's thoughts on the practice.

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

#76

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.

You can enable Vim's persistent undo by setting undofile and undodir options, that way undo works across restarts, no need to keep file open. Another cool feature is Vim's internal undo tree, which allows you to access changes that you undo-ed and then overwrote.

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

#77

Earlier quoted context omitted.

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.

Own C compiler? IIRC, that's not quite true. I worked on the C/C++ compiler team at Microsoft from 1991 to 2007, and I don't remember us producing a drop of the compiler just for Excel. I do think there was a special compiler flag for them, though, that fixed the order in which global variables were laid out to duplicate the source order. It was either Excel or Word that saved state by taking the addresses of the fir…

They may be referring to a telephone version of the story that excel was originally compiled to p-code for compactness.

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

#78

You'd think that with Windows having an install size of some 7GB that Microsoft would still have room for a tiny amount of code that would prevent this stupid behavior from happening. For decades, there have been other stupid annoyances with Windows Explorer such not providing options in 'Copy' to allow the automatic renaming of files in cases where the destination contains files of the same name. It stands to reason…

> How can they continue to use a 'nobbled' Windows when they have the power to actually fix these annoyances?

In a large company, just because you use something, develops it, and is on the specification process, it still doesn't mean you have the power to actually fix anything.

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

#79

Earlier quoted context omitted.

Own C compiler? IIRC, that's not quite true. I worked on the C/C++ compiler team at Microsoft from 1991 to 2007, and I don't remember us producing a drop of the compiler just for Excel. I do think there was a special compiler flag for them, though, that fixed the order in which global variables were laid out to duplicate the source order. It was either Excel or Word that saved state by taking the addresses of the fir…

They may be referring to a telephone version of the story that excel was originally compiled to p-code for compactness.

That sounds reasonable. I'd forgotten about the p-code version. I think that was dead by the time I started. I was also fortunate enough to avoid working on the 16-bit compiler backend, and just worked on the 32-bit, referred to internally as the n386 backend, which was pretty much a complete rewrite. The p-code backend would have been a variant of the 16-bit version.

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

#80
post #24

Earlier quoted context omitted.

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 y…

If the point is to only have to work with one doc, then undo across docs is still not useful.
Post reply on HN