Home Download Buy Blog Forum Support

Files opening in new windows

Files opening in new windows

Postby slideaway on Wed Sep 28, 2011 1:33 pm

Something that has bothered me was a change made a few revisions ago where the windows always open up a new instance of the editor when I open a new file from the Finder.

It used to just add a tab to the existing window, which is the behavior I'm expecting. Is there a way to go back to the way it used to handle files? This change kinda messes with my workflow.
slideaway
 
Posts: 6
Joined: Wed Sep 28, 2011 1:29 pm

Re: Files opening in new windows

Postby atomi on Wed Sep 28, 2011 2:34 pm

It's a global user setting

Code: Select all
   "open_files_in_new_window": true,


Just change to false.
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: Files opening in new windows

Postby agambier on Thu Sep 29, 2011 7:25 am

I'm running sublime text 2 beta build 2126 on fedora 13 with kde.
I changed
Code: Select all
"open_files_in_new_window": true,
to
Code: Select all
"open_files_in_new_window": false,

But each time I open a file using dolphin a new instance is still created !
Is it a bug or do I have to change another setting ?

regards
agambier
 
Posts: 3
Joined: Thu Sep 29, 2011 7:22 am

Re: Files opening in new windows

Postby agambier on Thu Sep 29, 2011 7:33 am

By running sublime from a terminal session I got the following error message :
libgio version is less than 2.26, single instance support disabled

I searched in the package manager and there's no libgio.
Do you know in which package it's included ?
agambier
 
Posts: 3
Joined: Thu Sep 29, 2011 7:22 am

Re: Files opening in new windows

Postby agambier on Thu Sep 29, 2011 7:57 am

I can't update the glib2 package for F13 but I think it is possible to use single instance even with glib 2.24.
I also use geany editor which is based on Gtk+ as well and the single instance mode works fine !
agambier
 
Posts: 3
Joined: Thu Sep 29, 2011 7:22 am

Re: Files opening in new windows

Postby CaptainCrowbar on Fri Sep 30, 2011 10:41 pm

I can't seem to switch off the new window behaviour in OSX. I have "open_files_in_new_window": false in my preferences, but opening a file from Finder still opens a new window regardless. (Using 2126.) Is this a known bug, or have I set something wrong?
CaptainCrowbar
 
Posts: 24
Joined: Tue Aug 02, 2011 4:31 am

Re: Files opening in new windows

Postby pmurillo on Mon Oct 03, 2011 9:36 am

I had the same issue. I found this and it solved the issue for me:

I copy and paste below:

This was one of the biggest annoyances for me when switching over from coda. Whenever I would drag a file into the sublime dock icon it would open a brand new instance of sublime when I just wanted to view it along with the rest of my files. Turns out this is a super simple fix.
HitCommand + Shift + P to bring up the sublime launcher type “user global settings and hit enter. This file is similar to a .vimrc file and holds all of your custom settings. This file wont be written over when you upgrade like default global settings. Once you have this file open, add the following line:
"open_files_in_new_window": false
pmurillo
 
Posts: 2
Joined: Mon Oct 03, 2011 9:35 am

Re: Files opening in new windows

Postby CaptainCrowbar on Mon Oct 03, 2011 9:05 pm

Yeah, I had to ask on user echo before I got an answer to this. It turns out the open_files_in_new_window setting has to go in Global Settings - User, not File Settings - User (which is the file you get when you hit Cmd+,). It never occurred to me that it might make any difference which settings file you put any particular entry in - I thought it just read them all and applied the whole set.
CaptainCrowbar
 
Posts: 24
Joined: Tue Aug 02, 2011 4:31 am


Return to Technical Support

Who is online

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