7

I suspended my laptop while writing some files in gedit. When I opened my laptop, it suddenly went off and lost the files I had open in the text editor. How can I recover those files?

enter image description here

I have tried using the terminal, and I have tried Nautilus, but I can't even access Nautilus on my Ubuntu 14.04.

2 Answers 2

10

By default, the text editor (Gedit) does not autosave documents unless you manually saved them at least once beforehand. So if you didn't save your file, it's lost, unfortunately.

If you did save your file, the newer autosaved copy is in the same place as where you saved the file, but with "~" appended. This is a hidden file, so enable "Show hidden files" in the file manager (Ctrl + H), or use ls -a in the terminal to see it.

7
  • But i saw , autosave of the copy of each file you open on text editor
    – Jay
    Jul 5, 2016 at 10:30
  • @Jay I don't understand what you mean by this, could you clarify ? Jul 5, 2016 at 10:35
  • Kindly please see my question, i just added a picture of what i am trying to tell you , it was just like that , it displayes " save backup copy of files or something" @jonazCs
    – Jay
    Jul 5, 2016 at 10:46
  • when i check the hidden files on my system , it didnt find the copy of my lost file
    – Jay
    Jul 5, 2016 at 10:46
  • 1
    What Jonas said is that the files are not auto-saved before you don't save them manually for the first time. I fear your work is lost...
    – Neni
    Jul 5, 2016 at 10:56
4

There is an issue opened for the feature of saving drafts, but it has not yet been resolved.

You could try to use this plugin.

1
  • This is the other good reason for ditching Gedit, as much as I love it.
    – markling
    Apr 15, 2023 at 12:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .