Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

pane.Pane.chooseBuffer

TypeScript

View as Markdown

Module
pane
Declared in
Pane
Package
libtmux
Source
packages/libtmux/src/pane.ts
Other languages
Python Ruby Lua Rust Go Java .NET C++ Swift
chooseBuffer ( ) → Promise<void>
method [source]
method [source]
chooseBuffer

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.

Examples

await pane.chooseBuffer();
In other ports Open the paste buffer chooser in a pane

0 declared, 0 inherited

Esc

Type to search.