Table of Contents

Floating Panes

A floating pane is a session that floats over a tab’s split panes instead of taking up a share of the tab. It is handy for a quick shell, a log you want to glance at, or a tool you want to keep in view without rearranging your splits. A tab can have any number of floating panes, and they stay with the tab when you switch tabs.

Creating a Floating Pane

There are several ways to make one:

  • Shell > New Floating Pane with Current Profile (⌘⌥N) opens a new floating pane in the current tab using the current session’s profile.
  • Session > Move Session > Move Session to Floating Pane, or Move Session to Floating Pane in a pane’s context menu, lifts an existing split pane out of the layout and makes it a floating pane. The tab must have at least one other split pane to leave behind.
  • In the Profiles window (Profiles > Open Profiles…), the New Floating Pane button opens each selected profile as a floating pane in the current tab.
  • In the toolbelt’s Profiles tool (View > Toolbelt > Profiles), select one or more profiles and choose New Floating Pane from the pop-up menu above the list to open each as a floating pane in the current tab. Once it’s chosen, the play button beside the menu does the same thing again.
  • When the selected text is a web URL that iTerm2’s built-in browser can open, Open URL in Floating Pane in the context menu opens it in a browser session in a new floating pane.
  • You can bind a key to the New Floating Pane with Profile action in Settings > Keys > Key Bindings or Settings > Profiles > Keys, or assign the New Floating Pane With Profile… pointer action in Settings > Pointer.

A new floating pane is centered in the tab and takes up about 80% of its width and height.

You can’t add a floating pane while the window’s layout is locked (Window > Lock Layout) or during Instant Replay. This applies to scripts too: AppleScript’s create floating pane, the iterm2.create_floating_pane function, and the Python API’s Tab.async_create_floating_session fail in a window whose layout is locked. A workgroup member can’t become a floating pane.

Moving and Resizing

Drag a floating pane’s title bar to move it within its tab. Drag its edges or corners to resize it; the size snaps to whole rows and columns, and a readout shows the size while you drag. A floating pane can’t be made smaller than a few rows and columns, and it always stays inside its tab. If the tab gets too small for it, the floating pane shrinks or moves to fit and goes back to its old size and place when there is room again.

Clicking anywhere in a floating pane brings it in front of the other floating panes.

From the keyboard, Window > Split Pane > Floating Panes > Move Floating Pane Up/Down/Left/Right moves the active floating pane by one cell. The Window > Split Pane > Resize Split Pane commands resize it: Move Divider Left and Move Divider Right change its width, and Move Divider Up and Move Divider Down change its height.

Double-clicking a floating pane’s title bar, or View > Maximize Active Pane, maximizes it so it fills the tab. A maximized floating pane goes behind the tab’s other floating panes, which stay visible. Do it again to put it back where it was. (In a tmux integration tab, maximizing works as tmux’s zoom does instead.)

Docking and Moving to Another Tab

To put a floating pane into the tab’s split panes, choose Dock Floating Pane from its title bar’s context menu or from Window > Split Pane > Floating Panes. It becomes a split pane to the right of the split pane you used most recently.

You can also drag it:

  • Hold Control while dragging a floating pane’s title bar to turn the move into an ordinary pane drag. While Control is held, floating panes are hidden so you can see the split panes underneath. Drop the pane on one of them to dock it there.
  • Dragging a floating pane out of its tab also turns the move into a pane drag. Drop it in another tab (without Control) and it stays a floating pane there, where you dropped it. Drop it outside any window to give it a window of its own.
  • Dropping any pane that you are dragging onto a floating pane in another tab makes the dropped pane a floating pane in that tab.

Managing Floating Panes

The Window > Split Pane > Floating Panes submenu acts on the active floating pane and the current tab’s floating panes:

  • Bring to Front and Send to Back change the active floating pane’s stacking order.
  • Select Next Floating Pane activates the next floating pane, cycling through all of them, and brings it to the front.
  • Dock Floating Pane moves the active floating pane into the split panes.
  • Hide Floating Panes hides all of the tab’s floating panes without closing them; their sessions keep running. Choose it again to show them. While they are hidden, the split panes show an indicator in their upper right, which changes to let you know about new output, a bell, or a session that ended in a hidden floating pane. Moving keyboard focus into a floating pane (for example, with Select Next Floating Pane or Next Pane) shows them again.
  • Move Floating Pane Up/Down/Left/Right moves the active floating pane by one cell.

A floating pane’s title bar has a context menu with Dock Floating Pane, Bring to Front, and Send to Back, along with the usual pane commands. Swap With Session… works with floating panes too.

A floating pane holds exactly one session, so you can’t split it. Close it the way you close any pane; Shell > Undo Close brings it back where it was.

Saving and Restoring

Floating panes are saved with window arrangements and restored with your windows, including their position, size, stacking order, and whether they were hidden or maximized.

tmux Integration

In tmux integration, iTerm2 shows tmux’s own floating panes as floating panes. This requires tmux 3.7 or later. Creating, moving, resizing, raising, docking, and floating panes requires tmux 3.8 or later; with tmux 3.7 the floating panes are shown but can’t be changed. In a tmux tab, tmux decides where a new or docked floating pane goes. A pane that tmux draws without a border (pane-border-lines none) has no title bar until you show it with the toggle that appears when the pointer is over the pane.

A session that isn’t part of the tmux session can’t become a floating pane in a tmux tab, and a tmux pane can’t be dragged into a regular tab as a floating pane.

Scripting

The Python API can create floating panes (Tab.async_create_floating_session), dock them (Session.async_dock), and set their frames (Session.async_set_floating_frame). See the Python API documentation for details.