tmuxtmuxCLI manual

Choose documentation 1

3.7c

tmux manual version

Latest (3.7c) 3.7c 3.2a
English

tmux join-pane

command tmux 3.7c

Like split-window, but instead of splitting dst-pane and creating a new pane, split it and move src-pane into the space.

Syntax

tmux join-pane [-bdfhv] [-l size] [-s src-pane] [-t dst-pane]

Alias: joinp.

Behavior

Like split-window, but instead of splitting dst-pane and creating a new pane, split it and move src-pane into the space. This can be used to reverse break-pane. The -b option causes src-pane to be joined to left of or above dst-pane.

If -s is omitted and a marked pane is present (see select-pane -m), the marked pane is used rather than the current pane.

C implementation

Internal declarations in tmux 3.7c:

Use from a library

These methods send join-pane. Each describes its own defaults, errors and execution model.

Library methods that send tmux join-pane, by scope
Language Methods
Python Pane.join
Ruby Pane#join
Lua Pane:move_to
Erlang join/3
Haskell joinPane when both pane occurrences match joinPaneWith when both pane occurrences match
Common Lisp client.join-pane
TypeScript Pane.joinTo
Rust Pane.join_into
Go Pane.Join
Java Pane.joinTo
Clojure join-pane!
Kotlin Pane.joinTo
Scala cats.Pane.joinTo scaladsl.Pane.joinTo
C# Pane.JoinAsync
C++ Pane::join
Swift Server.join(_:into:direction:size:)
Raku PaneRef.join

No method in PowerShell, Julia, Elixir, F#, OCaml, or Perl sends this command itself.

tmux sources and license

Syntax comes from tmux 3.7c list-commands. See the global options for sockets and configuration, and command syntax and targets.

Behavior is taken from the tmux 3.7c manual.

Command declaration

Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Esc

Type to search.

Reference previewOpen reference