Actually, the question is what to do? Who is to blame is clear. Is it possible to save the script? Maybe Sublima has a place where he saves temporary files? Or other options? OS - Ubuntu 14.04.
- 3@Alex Lapin, look in the direction of VCS (git, mercurial). You just would not have such a problem with the proper management of the project. - etki
1 answer
The question was resolved. At first it is useful to look where subl could store sessions. Found them in the user's home folder in the /home/user/.config/sublime-text-3/local directory. In the *.sublime_session file.
I open and see JSON array. And, lo and behold, I see the familiar code. True, it comes in one line and the characters at the end of the line are marked as /n . Well, having copied, I decided to go into reboot, because the subl tightly hung and did not want to be closed even through htop. After the reboot, I opened the subl and the greatest thing happened in this whole story - the last copy of the code hung as an unsaved tab. Thanks to the Sublime team!
Update
Oh, and one more thing https://github.com/akalongman/sublimetext-autobackups. Wonderful anti-plugin.
- oneLocal History is still an indispensable plugin. Separately saves all versions of files to the selected folder. - Sasha Chernykh