Sublime Forum

How To Stop `subl .` creating new Window-level Tabs?

#1

Recently Sublime Text started to use only one window with tabs, and it is driving me nuts :tired_face:

Before:

cd ~/project1
subl . 
cd ~/project2
subl .   

opened 2 separate Sublime windows, each showing one project. (no tabs!)

Since the recent update, when I type subl . for project2, Sublime Text always opens a tab in the existing Sublime window - no matter what the open_files_in_new_window preference is set to.

HOW do I recreate the original behavior, that two completely separate windows are created - no tabs - and just one Sublime Text process running?

When I set "open_files_in_new_window": "always", yes, it creates a new window for Sublime… but with all the tabs of the original window! and then there are two Sublime Processes running - The new window should only have the content from subl ., no tabs

Also: subl -n . does not work either

0 Likes

#2

As ST doesn’t open any kinds of tabs for whole directories, I guess it’s Mac’s window grouping what you see. Means, those are separate windows which are grouped by the OS, which is a feature ST supports. This behavior is unrelated with open_files_in_new_window as you are not opening files but folders.

The setting you might be interested in instead is "native_tabs": "system". Setting it to disabled might be the desired value for you.

1 Like

#3

OMG! Thank you, @deathaxe !!
You just saved my sanity! (the part that was left) :smiley:

TL;DR:

  "native_tabs": "disabled"

To make sure subl . opens a new window, not a tab :slight_smile:

0 Likes

#4

Gosh, how I LOVE that Apple forces these kind of UI-decisions onto all their users :roll_eyes:

1 Like