News for hackers. Stuff that matters.
Re:Zed on Linux Is Here by mintplant on Wednesday July 10, 2024 @03:27PM (#40930521)
Similarly, I have unlimited persistent per-file undo turned on in Neovim. I can open any file I've edited previously and walk through the full history of how it got there. With Undotree [0], I can even navigate branching paths in development. I don't know how people live without this.

[0] https://github.com/mbbill/undotree

Re:Zed on Linux Is Here by rustyminnow on Wednesday July 10, 2024 @04:13PM (#40931035)
What are your undo settings? I set undofile and undodir, but not sure if it's unlimited.

One issue I have is if nvim is closed and the file is touched by some outside process (say git pull) it clobbers the history. Do you know if there's a fix to that?

Re:Zed on Linux Is Here by koonix on Wednesday July 10, 2024 @08:21PM (#40932743)
Re:Zed on Linux Is Here by mintplant on Thursday July 11, 2024 @06:13AM (#40935137)
re: undo settings, I set my `undolevels` [0] to a very high number to make it unlimited for all intents and purposes.

[0] https://vimdoc.sourceforge.net/htmldoc/options.html#'undolev...