rajan
rajan

Reputation: 177

Sublime Text 3: Recover unsaved files lost because of killed application [OSx]

I accidentally force-closed my Sublime Text 3 using Mac's Activity Monitor and when I restarted, Sublime didn't recover all the unsaved files (~50 of them).

I went through several posts in StackOverflow as well Sublime forum, but none of them worked for me. Examples:

Anyways, I searched for all the files in my Mac with name "sublime" and found some files like the ones listed below:

/Users/Username/Library/Saved Application State/com.sublimetext.3.savedState/data.data
/Users/Username/Library/Saved Application State/com.sublimetext.3.savedState/window_1.data
/Users/Username/Library/Saved Application State/com.sublimetext.3.savedState/windows.plist

/Users/Username/Library/Application Support/Sublime Text 3/Local/Auto Save Session.sublime_session
/Users/Username/Library/Application Support/Sublime Text 3/Local/Session.sublime_session

/Users/Username/Library/Caches/com.sublimetext.3/Cache.db
/Users/Username/Library/Caches/com.sublimetext.3/Cache.db-shm
/Users/Username/Library/Caches/com.sublimetext.3/Cache.db-wal

/Users/Username/Library/Application Support/CrashReporter/Sublime Text_C6A04335-E900-5C09-B4A3-F203F47923E7.plist

/Users/Username/.Trash/Sublime Text (3114).app/Contents/MacOS/crash_reporter

"file_history" in "Session.sublime_session" does not have names of contents for any of the lost files.

I do have "hot_exit" flag set a false.

I don't know what happened this time for Sublime, otherwise it would always open those (now lost) windows and tabs upon start whenever my Mac has crashed.

I have lost a lot of important details with this(and most likely very costly) mistake. Any help is appreciated.

Thanks
Rajan

Upvotes: 3

Views: 4196

Answers (1)

Patrick Lee
Patrick Lee

Reputation: 31

The magic is a workable way for me.

  1. Close Sublime Text 3 completely.
  2. Restore this file Auto Save Session.sublime_session from Time Machine to the "Local" directory, and choose it by your latest edit and unsaved timestamp. /Username/Library/Application Support/Sublime Text 3/Local/Auto Save Session.sublime_session

  3. Reopen Sublime and the unsaved files will show into your eyes.

  4. Surprise! ...and not forget to save them.

Upvotes: 3

Related Questions