Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased libtmux has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-lisp latest

libtmux:split-pane

Split captured PANE and return a COMMAND-OUTCOME with the created pane. DIRECTION is :HORIZONTAL (left/right) or :VERTICAL (top/bottom). SIZE is a positive cell count; PERCENT is 1 through 100, mutually exclusive with SIZE. BEFORE places the pane before its target; FULL-SIZE spans the whole window. DETACHED defaults true. CWD, ENVIRONMENT, COMMAND and SHELL-COMMAND follow NEW-WINDOW. Failed acquisition after successful creation is retained separately. Signals STALE-TARGET or an operational condition; never retries the mutation.

Source and package
Qualified name
libtmux:split-pane
Declared in
libtmux
Package
libtmux
Source
src/creation.lisp
(split-pane client pane &key (direction :vertical) size percent before full-size cwd environment (detached t) (command nil command-p) (shell-command nil shell-command-p) cancel-token timeout output-limit)

Public owner: libtmux

tmux command#

The tmux commands behind split-pane.

tmux C API#

The C declarations in tmux that implement these commands.

Each path starts at a function a command runs, which is degree 1. The degree counts steps from there along the path, and each step is a call or a reference: degree 2 is reached from that function, degree 3 from the next, and so on.

Split a window

  1. 1 cmd_split_window_exec
  2. references → 2 spawn_pane
  3. calls → 3 window_add_pane
  4. calls → 4 window_pane_create

Guides#

Pages that discuss split-pane.

Esc

Type to search.

Reference previewOpen reference