I accidentally removed about 1 hour of my work, how to restore? Last week I worked with file.md on my current computer and didn't save it into disk but just put my OS into a sleep mode. Yesterday I edited file.md on another machine. Today I made my first machine woken up and synchronized the file (via Syncthing) on both machines but not in the buffer of nvim at my current computer. So nvim asked me to load changes from the file into my current buffer because I have:
au FocusGained,BufEnter * checktime
I agreed to load it from disk but then stupidly enough I pressed undo (u) (several times or/and something more?) and saved the buffer into the disk. How to restore the file? This looks like I lost it, right? Because I have no swapfile (
:swapname is nothing;
nvim -r shows no swap files), undo history does not contain the loaded text (pressing
Ctrl-r does not contain the change) (reasonable because I didn't edit it just loaded from a disk), Syncthing doesn't keep versions of this file, the git repository doesn't contain it (because I didn't commit). So it looks my setup failed to save me from my stupidity.