Remix.run Logo
▲ pdonis 2 hours ago

Deleting important data without warning is not the same as not providing a feature users might want.

▲luma 2 hours ago | parent | next [-]

There is a flip side to this - is vim encrypting this data it keeps forever? If I delete something I consider sensitive, I might unwittingly be recording that presumed-deleted piece of data to my user profile somewhere to be deleted never.

▲MaxBarraclough an hour ago | parent | next [-]

Vim's persist undo is disabled by default, perhaps for privacy reasons. edit: I see sebzim4500 got there first.

* https://news.ycombinator.com/item?id=49867678

* https://bastian.rieck.me/blog/2015/persistent_undo_vim/

▲webstrand an hour ago | parent | prev | next [-]

That doesn't justify its deletion, it might justify warning the user, but unconditionally deleting data not owned by the app shared with other apps?

▲jeremyjh an hour ago | parent | prev | next [-]

Stop looking for post-hoc justifications for behavior that is clearly wrong.

▲phoghed an hour ago | parent [-]

Second time in this thread you’re telling other people how to think and behave because they aren’t acting like you

▲tehwebguy an hour ago | parent [-]

OK and you are doing the dril wise man tweet sincerely

▲nikanj an hour ago | parent | prev | next [-]

How could you possibly encrypt it in a way that holds water? Any attacker who cares enough to get your undo file can also get your undo keys, unless you want to wire a whole system of undo-now-requires-password-auth-with-MFA

▲sebzim4500 an hour ago | parent | prev [-]

Not really since the feature is opt in

▲crote an hour ago | parent | prev [-]

It's a feature most software doesn't even have, and it is off-by-default. If you rely on your undo history to store "important data", you are doing something horribly wrong - to the level of storing your critical emails in the Trash folder.

Persistent undo exists to recover from an accidental write-and-quit mid-session nuking some stuff you really didn't intend to delete. If you care about its contents beyond a handful of hours, you either need to adopt proper version management, or start making backups.

Reading the PR the change was needed because the old undofile format was fundamentally broken. They considered making an undofile-upgrade mechanism, but it would've caused more issues that it would've solved. In other words: stuck between a rock and a hard place.

A duty of care also means occasionally having to break things to make it better, or else you end up being stuck with spacebar heating[0] forever. As a user it does suck, but that's the price you have to pay for using actively-developed software.

[0]: https://xkcd.com/1172/