On caring for user data: NeoVim caused Vim undo files to be deleted
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
On caring for user data: NeoVim caused Vim undo files to be deleted
Unofficial Hacker News client; not affiliated with Y Combinator.
gchamonlive · · focus · HN ↗
This seems however more like of a documentation and UX problem. Neovim should warn and ask before deleting old undo files, or at least back them up, but it's not neovim's fault if people don't use reliable backup and versioning systems. Relying on persistent undo for this is kind of a self inflicted wound.
Use the proper tools for the job. Saying that neovim developers "had no concept of a duty of care to their users" is really disrespectful. Neovim's Lua API is overflowing with care, you just need to go look.
sdorf · · focus · HN ↗
gchamonlive · · focus · HN ↗
delecti · · focus · HN ↗
The feature's name has "persistent" in it.
endospore · · focus · HN ↗
For example applying the recover file (well it's a huge pitfall in vim on its own) resets not only the current undo history but also the "persistent" one.
pas · · focus · HN ↗
<a href="https://infosec.exchange/@david_chisnall/117172481079439378" rel="nofollow">https://infosec.exchange/@david_chisnall/117172481079439378
pas · · focus · HN ↗