Sublime Forum

How to recover lost unsaved files?

#1

I know it’s a bit of a long shot, but I’ve lost a bunch of unsaved buffers from Sublime Text 3.

I’ve been using Sublime Text since “forever”, and I guess the fact that my files would survive a quit a restart made me complacent, and I had a bunch of files I just never saved. I think after I installed the Gradle and Kotlin plugins using Package Control, I restarted Sublime Text 3, and upon restart, I noticed all my old buffers were gone.

I’ve looked in %APPDATA%\Sublime Text 3\Local and I do see a Session.sublime_session, Session.sublime_metrics and License.sublime_license there, but the latter two are just 1KB big (too small to contain all my data) and Session.sublime_session is a plain text file, but I don’t see my data in there either.

Am I just out of luck now?

Thanks,
Nebu

1 Like

#2

I don’t know if you can recover your files or not, but an auto-backup plugin might save you from the same hassle in the future.

1 Like

#4

The only answer to this is backups.

ST has to store the file contents between restarts somewhere, and that is either the workspace file of your project or the session file somewhere in the application data folder (Data/Local/*.sublime_session). If you have backup of these files, you should be able to restore the contents.

Otherwise, ST is potentially not the right app to keep a lot of unsaved text snippets around. Consider storing these snippets in an actual folder on your hard drive or use any other program of your choice for managing text snippets.

4 Likes

#5

You might be lucky and find an older copy Session.sublime_session~
ending with character ~

0 Likes

Recover unsaved files lost because of killed application [OSx]
#6

Thanks for the tip, I found the session in the project folder :slight_smile:

0 Likes

#7

Hi!
I can’t find the any sublime text folder in Application Support folder. Can you please tell me the path where you found your project folder!

0 Likes

#8

I’ve recently lost all my temp files after installing an update. That was very inconvenient.

0 Likes

#9

I’m not sure if you can recover all of your lost files. But maybe you use data recovery tools, such as Bitwar data recovery, minitool, recuva, etc. to have a try.
Good luck.

0 Likes