Home Download Buy Blog Forum Support

Open new files in the same window

Open new files in the same window

Postby maxedison on Mon Sep 19, 2011 7:57 pm

I generally edit files on the server, using Transmit to open them directly in Sublime Text. Upon saving them, Transmit recognizes that the file has changed and automatically uploads it. Therefore, I don't have much use for the "Project" feature. Instead, I'd like to be able to open all new files in the same window. As it currently stands, all files open in different windows.

I'd basically like to have a single window, as well as a sidebar that lists all these open files. It would also be nice to have a keybinding for cycling through these open files. Or can something like this aleady be approximated?
maxedison
 
Posts: 5
Joined: Mon Sep 19, 2011 7:51 pm

Re: Open new files in the same window

Postby jps on Mon Sep 19, 2011 11:42 pm

You can use the open_files_in_new_window global setting for the former, and take a look through the File/Switch File menu for the latter
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Open new files in the same window

Postby maxedison on Tue Sep 20, 2011 8:20 pm

beautiful. thx
maxedison
 
Posts: 5
Joined: Mon Sep 19, 2011 7:51 pm

Re: Open new files in the same window

Postby cidro on Wed Feb 22, 2012 1:29 pm

That is for OS X users only, is there a way to do it in Linux?
cidro
 
Posts: 5
Joined: Tue Feb 21, 2012 1:15 pm

Re: Open new files in the same window

Postby jps on Thu Feb 23, 2012 1:05 am

This is the default behavior in Linux, as long as single instance support is enabled. You can check this by running Sublime Text from the terminal, and seeing if it prints any error messages at startup.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Open new files in the same window

Postby strags on Tue Jun 26, 2012 5:37 pm

Under Linux, (Ubuntu 12.04), when sublime is invoked from the command-line, files and directories are *always* opening in new windows, as opposed to the previous behavior where they were added to the current project in the existing window.

I am seeing no errors/warnings printed in the console from which I'm invoking Sublime.
strags
 
Posts: 3
Joined: Tue Jun 26, 2012 5:32 pm

Re: Open new files in the same window

Postby inactivist on Sat Dec 01, 2012 5:08 am

strags wrote:Under Linux, (Ubuntu 12.04), when sublime is invoked from the command-line, files and directories are *always* opening in new windows, as opposed to the previous behavior where they were added to the current project in the existing window.

I am seeing no errors/warnings printed in the console from which I'm invoking Sublime.

Just an FYI: Despite the OS/X caveat,
Code: Select all
"open_files_in_new_window": false
seems to enable the desired behavior, at least on my system: Ubuntu 11.04 32bit, Sublime Text version 2.0.1, build 2217.

Prior to setting it to false, Sublime Text would open a new window each time I started it from a shell. Now the target files open in the same window as my other files, but in a new tab.
inactivist
 
Posts: 1
Joined: Sat Dec 01, 2012 5:05 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests

cron