Selection.exists
Whether anything matches. Cheaper to read than comparing a count to zero.
Source and package
- Qualified name
-
Selection.exists - Module
- selection
- Declared in
Selection- Package
- libtmux
- Source
- packages/libtmux/src/selection.ts
-
Examples#
if (snapshot.windows.exists({ name: "build" })) {await session.selectWindow("build");}
Guides#
Pages that discuss exists.