Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merge Separate Windows (and tabs within) into one in Sublime Text 3

On my mac, I work with a lot of tabs and windows in SublimeText 3. I often like to pull tabs out to create a new window but later, I want to be able to easily consolidate them.

Scenario: I have two SublimeText windows open, each with 5 tabs. Now, I'd like to merge all the tabs of window 2 into window 1 so I only have one remaining window with 10 tabs.

Chrome has a fabulous extension called Merge Windows that demonstrates this behavior perfectly.

How would I do this in SublimeText 3?

like image 294
user2544542 Avatar asked Aug 10 '14 23:08

user2544542


People also ask

How do I open multiple tabs in Sublime Text 3?

If you want to see more than one document at the same time in Sublime Text 3, you could drag a tab out into a second window. Alternatively, you can split the main window into multiple sub-windows, then click and drag your document tabs into the sub-window you prefer.

How to see multiple documents at the same time in Sublime Text?

For example, if you’re trying to code a custom function that’s defined in a separate file. If you want to see more than one document at the same time in Sublime Text 3, you could drag a tab out into a second window.

How do I split the editor pane in Sublime Text?

When multiple tabs are selected, Sublime Text will automatically split the editor pane to display the tabs horizontally. Note: in the following key bindings, Primaryrefers to the Ctrlkey on Windows and Linux, and the Cmdkey on Mac.

How do I merge two windows in sublime?

In mac, open sublime, click Window -> Click Merge all Windows Also make sure that this won't work if you just have one window open which is pretty obvious. Share Improve this answer Follow answered May 29, 2020 at 7:56 mozilla-firefoxmozilla-firefox 7141010 silver badges2121 bronze badges Add a comment | 0


2 Answers

I have created a sublime package to help solve this problem called Merge Windows.

It can be downloaded from github or through Sublime using Package Control

like image 117
user2544542 Avatar answered Oct 22 '22 06:10

user2544542


This isn't exactly what you're asking for but I think this is close enough:

Drag the tab from the "source" window to the "target" Window and hover near the other tabs in the source window. Then drop it there. Voila. You've moved one tab. Rinse and repeat for the other tabs.

like image 35
user657862 Avatar answered Oct 22 '22 05:10

user657862