Skip to contents

Create a new pane by splitting target.

Usage

new_pane(
  target = NULL,
  vertical = TRUE,
  size = NULL,
  before = FALSE,
  full = FALSE,
  start_directory = NULL,
  shell_command = NULL
)

split_window(
  target = NULL,
  vertical = TRUE,
  size = NULL,
  before = FALSE,
  full = FALSE,
  start_directory = NULL,
  shell_command = NULL
)

Arguments

target

A tmuxr_session, tmuxr_window, or tmuxr_pane.

vertical

A logical. If TRUE split target vertically, otherwise horizontally. Default: TRUE.

size

A numeric. The size of the new pane in lines (for vertical splits) or characters (for horizontal splits). If less than 0, size is interpreted as a percentage. Default: NULL.

before

A logical. If TRUE, create the new pane to the left of or above the active pane. Default: FALSE.

full

A logical. If TRUE, create a new pane spanning the full window width (for vertical splits) or full window height (for horizontal splits), instead of splitting the active pane. Default: FALSE.

start_directory

A string. Working directory this pane is run in.

shell_command

A string. Shell command to be invoked when creating the pane. If NULL, the default shell is used.

Value

A tmuxr_pane.