libtmux Reference MCP Search
On this page

selection.Selection.exists

View as Markdown

Module
selection
Declared in
Selection
Package
@libtmux/libtmux
Source
packages/libtmux/src/selection.ts
exists ( criteria : : WhereOf<Model> ) boolean
method [source]
method [source]
exists

Whether anything matches. Cheaper to read than comparing a count to zero.

Examples

if (snapshot.windows.exists({ name: "build" })) {
  await session.selectWindow("build");
}

0 declared, 0 inherited

Esc

Type to search.