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

pane.Pane.findWindow

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
findWindow ( pattern : : string ) → Promise<void>
method [source]
method [source]
findWindow

Search windows interactively from this pane.

The promise resolves once the mode 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.

In other ports Search windows interactively from a pane

Examples

await pane.findWindow("editor");
>>> pane.find_window('sh')

0 declared, 0 inherited

Esc

Type to search.