Home Download Buy Blog Forum Support

Bug with the context menu option.

Bug with the context menu option.

Postby Anomareh on Fri Oct 02, 2009 4:34 pm

I've notice a small but somewhat annoying bug with the 'Open with Sublime Text' context menu option.

When ever you open a file with this option, with Sublime closed, it seems to throw away the session data. Is there anyway to have it tack it on so to speak to the last session when ever you open a file this way?
Anomareh
 
Posts: 222
Joined: Thu Oct 01, 2009 7:32 pm

Re: Bug with the context menu option.

Postby jps on Fri Oct 02, 2009 11:22 pm

If you exit via 'Exit and preserve session', then your session will be restored and the file opened. Alternatively, you can put --restore on the command line to make it always happen.

There's likely a good argument for this to always happen, but then again, some people don't even like the last set of files opening on a normal startup.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Bug with the context menu option.

Postby Anomareh on Sat Oct 03, 2009 1:44 am

Ah ok. I always just exited by right clicking and choosing close and if I just opened Sublime again normally the session was preserved so I wasn't aware that it wasn't already doing it.

Also where exactly should I add '--restore' to enable this permanently?
Anomareh
 
Posts: 222
Joined: Thu Oct 01, 2009 7:32 pm

Re: Bug with the context menu option.

Postby barty on Sat Oct 03, 2009 2:50 am

change the path for your sublimetext.exe, save to a .reg file, and double click to import into registry

Code: Select all
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command]
@="d:\\bin\\editors\\sublime\\sublimetext.exe --restore \"%1\""

barty
 
Posts: 47
Joined: Thu Sep 10, 2009 5:39 am

Re: Bug with the context menu option.

Postby Anomareh on Sat Oct 03, 2009 4:49 pm

Thank you very much!
Anomareh
 
Posts: 222
Joined: Thu Oct 01, 2009 7:32 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 20 guests