Hacker News new | ask | show | jobs
by bakugo 1138 days ago
I have indeed lost work this way multiple times before. Wish there was some way to outright disable Undo Copy, or at least put it behind a confirmation dialog.

Edit: Actually read the entire page this time and there's indeed a registry edit to disable it, but it disables every other type of undo as well which isn't ideal.

1 comments

> Wish there was some way to outright disable Undo Copy

The article explains how to:

"Is there a way to prevent this?

Yes. Just disable this silly feature using the Windows Registry.

Create a DWORD entry named MaxUndoItems with a value of 0 under:

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced

Alternatively you can run this equivalent command:

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v MaxUndoItems /d 0 /t REG_DWORD /f

Log off or restart and the context menu option will be gone. The associated shortcut (Ctrl-Z) will be disabled too (note that this only applies to Explorer, Ctrl-Z will still work in other programs)."