+8
Аяқталған
Open file using file manager in existing Sublime Text 2 window
I've setup Sublime Text 2 to be my default text editor. As a result, each time I open a text file in my file manager (Nautilus on Ubuntu) a new Sublime Text 2 process is launched.
While sometimes this might be desirable, often it isn't. For example: If I have many files open in my current ST2 session / project and then open a file related to this project in Nautilus. In this situation a new ST2 process is created, which seems to clone the existing ST2 process's session, and then create a new tab for the opened file. Instead, what I'd prefer in these cases, is the ability to have the file I opened in the file manager appear as a new tab in an existing (if any) Sublime Text 2 process.
Is there any way to do this currently? Perhaps a command line argument, or some other option to configure?
If not, please add this feature. Thanks!
While sometimes this might be desirable, often it isn't. For example: If I have many files open in my current ST2 session / project and then open a file related to this project in Nautilus. In this situation a new ST2 process is created, which seems to clone the existing ST2 process's session, and then create a new tab for the opened file. Instead, what I'd prefer in these cases, is the ability to have the file I opened in the file manager appear as a new tab in an existing (if any) Sublime Text 2 process.
Is there any way to do this currently? Perhaps a command line argument, or some other option to configure?
If not, please add this feature. Thanks!
Customer support service by UserEcho
When I run ST2 from the command line I get the error message you mentioned: "libgio version is less than 2.26, single instance support disabled"
I've spent the past hour trying to find a way to update this library to a version >= 2.26 using Ubuntu 10.04 -- but being a bit new to Linux I haven't had any luck so far... Is there an easy solution to updating this library? It seems that its connected to the latest release of Gnome, however Ubuntu doesn't seem to have adopted it yet for 10.04.
...LD_LIBRARY_PATH=/opt/lib/glib2.26/lib... <-- :D
Is there a mirror or copy of the suggested "trick" from Mr. Waz? Link seems to not work.
Try this: http://mashingwachine.tumblr.com/post/4414279415/sublime-text-2-on-an-old-ubuntu-and-libgio-2-26