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:
StackOverflow Post.
Sublime forum post1: The requester recovered using a file in Project folder. Since I didn't have any Project open, I'm not sure where would I find that kind of a file.
Sublime forum post2: A reply on this post says that I'm pretty much screwed because I was not using Projects.
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
The magic is a workable way for me.
Close Sublime Text 3 completely.
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
Reopen Sublime and the unsaved files will show into your eyes.
Surprise! ...and not forget to save them.
Related
have an application that keeps reinstalling itself even after uninstall. It's an app that helps you type in chinese characters. As you can see from the format of this message that it messes with my typing.
Can anyone please help?
PS:Idont even know how to at least turn it off because everything is in chinese.
I have the same problem since last Saturday (26/4).
I used unlocker as recommended by another website to remove the application. But my alt+shift and Window+space hot keys are both not working anymore. So I restored window back to a previous restore point for restoring the hot keys.
However, after a while the application reinstalled back.
I tried unhackme but the application reinstall after a few reboot. For the passed 1 week I've been fighting with this application.
On the 30/4, I was thinking whether to refresh my windows, suddenly I realised that I had copy an excel file from my client on 25/4. His computer same having the same problem. So I tried to delete the said excel file but it can't be deleted. So I use unlocker to delete the folder storing the excel file. than I use unhackme to remove all file/program related to Dongfanginput, use unlocker to delete the folder at program folder, restore window to a previous restore point. My computer is running smoothly for pass 2 days and hoping that the problem wouldn't come back again. (sorry for my poor English)
SublimeText keeps Find / Replace history. Is there an easy way to disable or at least clear this?
Find/replace history is stored in a Session file.
Mac location:
~/Library/Application Support/Sublime Text 3/Local/Session.sublime_session
PC location:
%AppData%\Roaming\Sublime Text 3\Local\Session.sublime-session
The Session file hold tons of information and settings (over 3000 lines in my file), including the find/replace history. Like everything else in Sublime Text, it's JSON formatted, so you could just write a simple script to go in a delete the information stored there.
The find history itself is located under
Session.sublime-settings->settings->new_window_settings->find_state->find_history
replace_history is also located in the same spot.
I am using ST3 and I can just delete the contents (Select all -> Delete) in the Find results tab and close it. The next search only gives the results of the new find.
I've been working for a while with TextMate 2 and there's something I've never been able to solve.
Is it possible to always show the file browser at launch?
I know you can show it with ctrl+alt+cmd+D but I'd like it to always show at launch without having to make this shortcut (as I launch/quit TextMate many times in a day).
I'd be really grateful if anyone had a solution for this problem.
Thanks very much
5 months ago, I contacted Michael Sheets from MacroMates Support and here's his answer:
The file browser is shown when directories are opened or a favorite is open that is a directory. It is not shown when a single file is opened. If you want the file browser shown you should either open the directory itself or take advantage of the Favorite system.
I'm interested to. Did you already find out how to always show the file manager? Maybe it's possible through .tm_properties file?
Is there an API call to determine if Sublime Text has finished loading, including reopening all files that were open before Sublime was closed last? Maybe there is something similar to plugin_loaded(), which gets called after the plugin has finished loading?
If this is not possible, are the files that were open last listed somewhere?
I am not sure if there is such API. However, you can get all stored buffers in file Sublime Text 2\Settings\Session.sublime_session (search "buffers" in it).
I use a combination of ForkLift and Textmate to edit files on a remote server via FTP. it works really well, except for one little quirk: when I hit save on Textmate, Forklift saves the file, and then Forklift takes the focus. So, every time I hit Save on Textmate, I have to wait for Forklift to save, and then hit Cmd + Tab to return to Textmate.
Is there a way this can be avoided? I.e. is there a way that when I hit Save on TextMate, the focus does NOT get taken by ForkLift?
And, by the way, I tried to edit the files with TextEdit instead of TextMate, and the behaviour did not change. So, I'm guessing this is either a ForkLift issue, or a Mac issue.
Either way, help would be much appreciated.
Just tested with Forklift Version 2.0.6 (315) and couldn't find the behavior described by you. The focus wasn't lost by saving the document within Textmate.
Maybe 'already' fixed?