# pane.Pane.zoom

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/pane.ts#L324
- **Page:** https://libtmux.org/en/ts/latest/reference/pane-pane-zoom/

```
pane.Pane.zoom(options: : CommandOptions) -> Promise<void>
```

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

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.

## Example

```ts
await pane.zoom();
```
