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.

method libtmux-ts latest

Pane.zoom

Make this pane fill its window, whatever it was doing before.

Source and package
Qualified name
Pane.zoom
Module
pane
Declared in
Pane
Package
libtmux
Source
packages/libtmux/src/pane.ts

Description#

Idempotent, and one tmux command: tmux offers only a toggle, so this asks tmux to evaluate #{window_zoomed_flag} and toggle in the same invocation rather than reading the flag here and racing the answer. window.zoomedFlag reports the state a snapshot saw.

Examples#

await pane.zoom();
Parameters

tmux command#

The tmux commands behind zoom.

resize-pane (the window is not zoomed) if-shell select-pane

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference