Merge split terminal tab back into one terminal
In a terminal window, I can use File
> Open Tab
to get two tabs in the same window.
Then, if I move the terminal up to the top of the OS, those two tabs become two separated windows.
How can I merge those two windows back to one (like I had before)?
I don't think that's possible.
What you can do: create a new tab in the window that you want to merge into the first one, then choose the first tab and drag it to that window and close the other window.
The process would look like:
[window] → [[tab][tab]] → [window] [window] → [window] [[tab][tab]] → [[tab][tab]] [window] → [[tab][tab]].
Confused? - Here is a clip showing the process. ;-)
This might be an old thread but Im adding this incase someone stumbles onto this thread looking for the answer.
- Add a new empty tab to the terminal you want to move.
- Grab the tab of the terminal you want to move, and drag it to the terminal window you want this terminal in.
- Delete the previous terminal window
- you should now have the terminals merged back into one
Re @greg-kramida's comment on the accepted answer, the gnome-terminal Gitlab says this feature was "disabled in commit 10e164d8 due to an underlying GTK+ bug sometimes causing a crash[...]. We'd be more than happy to re-enable it once that bug is fixed." ("That bug" is still open, but the gnome-terminal bug was closed.)
There appears to be a patch for gnome-terminal in the Debian version of the report but I haven't tried to apply it.
If you're already at this stage, you might want to consider Terminator. It's not nearly as scary as its screenshots suggest. It's great for having multiple terminals nested in one physical window. You can have tabs, broadcast (where your input goes to all the terminals) and you can move things around (although, not window-to-window).
I guess the idea with this is, after you get used to it, you never need more than one window.
sudo apt-get install terminator