Sublime Forum

How to get projects tabs on top of file tabs?

#4

Sublime seems to pretty definitively support only a single project per window based on the documentation available, although I could be wrong.

However it seems more likely that if you saw a window with project tabs at the top that it was something your OS was doing for you to meld the multiple windows together into a tabbed interface, which would mean that whatever it was is outside of Sublime’s control.

For example I think MacOS does something like that in more recent versions although I’m pretty sure in that case people have been complaining that it doesn’t seem to work properly because Sublime doesn’t cooperate with it. Presumably window manages for Linux or newer versions of Windows could do something similar.

1 Like

#5

Sure you could be right that this is part of my OS. I am on a MAC 10.12.2. Meanwhile I found out how it is activated and it seems to work pretty nice. shift+alt+cmd+N does the trick. One Window with as much projects as “main”-tabs in it as you want.

0 Likes

#6

I’ve just started to experience this same thing – it is, I believe, because of the Finder preference “Open folders in tabs instead of new windows.” I have only recently turned this on, at which point all of my projects started to collapse (upon ST3 restart) into a single window with multiple project tabs.

I don’t like it, primarily because I can’t keyboard-switch anymore. With projects in separate windows I can Command-tilde to switch, but I don’t know the keystroke to switch Finder windows within ST3. (In Finder it’s Command-Shift-Arrow, but this is already in use in ST3).

Do you know of a project-tab keystroke in ST? I may just revert my Finder preference to avoid having to drag the tabs into their own windows every time.

0 Likes

#7

it is, I believe, because of the Finder preference “Open folders in tabs instead of new windows.”

This appears to be wrong… I unset this preference in Finder, but ST3 still opens with all projects tabbed in a single-window.

0 Likes

#8

Same here. I seemingly activated project tabs by using ST3 in Full Screen Mode, but now cannot recreate this behaviour anymore. I actually miss it, so does anyone know how to get back? :slightly_smiling:

0 Likes

#9

Really glad you posted this tip. I don’t know how it happened but I wanted it back too. If you have separate project windows you can use the command to open a blank project in each then drag the tab of one of your actual projects to the other window’s tab row to merge, then close the other window and other blank project tab. Probably more work than reopening in the blank tab but it’s an option :slight_smile:

0 Likes

#10

Could anyone experiencing this create and upload a video of this? It’s hard to visualize something that is very likely not possible. A screenshot could help, too.

1 Like

#11

can confirm that shift+alt+cmd+N creates the tabs. Perhaps it is a feature that isn’t fleshed out yet? I found it by working in osx full screen and just hitting shift+cmd+N and got the tabs. I love this feature and hope it stays in there.

0 Likes

#12

@cityzen You are seeing the macOS Sierra window tabs, that Sierra makes available unless an application explicitly opts-out. You can use these as long as you don’t use the Adaptive theme, since that utilizes a full-window content area, and that isn’t compatible with macOS window tabs.

0 Likes

#13

Ahh, ok, that makes sense. The first time I ever saw it was in full screen and immediately figured it was an OSX thing until I could do it in a standalone window with shift+alt+cmd N. What is that shortcut meant to do anyhow?

0 Likes

#14

I believe that is a system-wide shortcut, but I am not 100% certain.

0 Likes

#15

I was a big user of the system tabs above the project tabs as well. As far as I can tell it was a feature of OSX for finder tabs and the “bug” was removed as of Sublime Text 3 Build 3143 (Present in Build 3126).

I could reliably get the tabs to appear with the following method in Build 3126:

  • close sublime text completely
  • open a project from the terminal using sublime .
  • add the window that sublime opened as a split screen, full screen app.
  • open additional projects using sublime .

Here is a video of the tabs we are all referring to.

Please Sublime, make this an option to enable or disable. I can see why some people don’t like it, but there are a lot of us that have made it part of our daily workflow.

0 Likes

#16

Build 3143 definitely still allows you to use macOS tabs. However, Apple doesn’t let you use macOS tabs with full-height content views, so you are out-of-luck if you want the Adaptive theme and macOS tabs.

If you are using the Default theme, press cmd+alt+shift+n to add a new macOS tab.

0 Likes

Project Tabs on OSX
#17

Just upgraded to build 3143 and definitely noticed this feature is gone. :confounded: I have a few projects I work on per day that I switch to frequently. Having them in different tabs that are easily accessible is so important for my workflow.

Hope this gets added back on, in the meantime, going to try to downgrade to 3126.

0 Likes

#18

There is

Project Manager

with which you can switch fast between projects. I also made a plugin some times ago that allows you to save layouts with files on several slots and reload them at will.

SppLayout

1 Like

#20

I stumbled upon this thread looking at how to always use “window” tabs that macos makes available in full screen mode. I later found there is a system wide setting to do this for all apps (System Preferences -> Dock -> Prefer tabs when opening documents: Always).

3 Likes

#21

Can confirm what @fleeting reported - ST3 seems to read that Dock preference to determine this behaviour (which is an annoyingly obscure way to handle it, but I digress). Thankfully switching this to “Prefer tabs when opening documents: Manually” turned it off.

0 Likes

#22

Am I missing something? To me this looks like 2 files in 2 folder in only 1 project. Can you go to Project / Edit Project and post your *.sublime-project settings?

0 Likes

#23

So weird that ST3 uses the dock preference but this really helped, thanks!

0 Likes

#24

I think showing many projects each containing many files in tabs would be useful in the Windows version as well. I like working in one window, even when working on more than one project at a time. But I’ll get used to using separate windows for separate projects, if that works in Sublime. (Just trying to find an editor that can do as much as possible of what NoteTab Pro can do–I have to leave NoteTab because it doesn’t do UTF-8 at all.)

0 Likes