Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

typealias libtmux-ts latest

WindowDirection

Where a new window lands relative to the one it was created from.

Source and package
Qualified name
WindowDirection
Module
constants
Package
libtmux
Source
packages/libtmux/src/constants.ts
type constants.WindowDirection = (typeof WindowDirection)[keyof typeof WindowDirection]

Description#

tmux inserts at the next index before or after the target and moves the windows above it up to make room, so indices a caller is holding can shift. Without either direction the target index is the new window's place.

Members2#

WindowDirection constant object properties
NameValueDescription
Before "BEFORE" Insert before the target window, shifting occupied indices if needed.
After "AFTER" Insert after the target window, shifting occupied indices if needed.
Esc

Type to search.

Reference previewOpen reference