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.zoomedFlagreports 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.