# pane.Pane.chooseBuffer

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

```
pane.Pane.chooseBuffer() -> Promise<void>
```

Open the interactive buffer chooser in this pane.

The promise resolves once the chooser is on screen, not once someone
has chosen: tmux answers this command as soon as it opens the mode.
Bind a tmux command to the selection to act on what was picked.

tmux needs a client attached to the session to draw this. With none, it
does nothing and reports success, so a headless run is told it worked.

## Example

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