DebugPointer
Published on

Convert Pane to Window in Tmux

Convert Pane to Window in Tmux

Tmux is one of the most useful tool when it comes to using using a linux terminal.

Tmux is a terminal multiplexer, it allows a user to access multiple terminals (or windows), each running a separate program, while providing a single screen to work on. Tmux is useful for running more than one command-line program at the same time, increasing productivity and the way you work.

Let's say you have already created one or more tmux sessions, with several windows and panes. We will discuss how you can convert a pane to a window. This can help you organize your windows better.

Convert a tmux pane to a window

Let's consider the case where you are inside your tmux pane i.e., active pane. Then to convert the pane to a new window, you can use the following keyboard shortcut-

Prefix + !

By default the prefix is Ctrl-B, so to convert the active pane to a new tmux window you can run the following command-

Ctrl-B + !

NOTE: You can also merge windows to a single window with many panes, this will help in having panes together and will help in quickly switching between them.

I hope you found this article useful, glad that you found it easy to convert tmux pane to a new tmux window in Tmux. You can also check out the complete tmux cheatsheet of keyboard shortcuts and mouse shortcuts.