Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-ts latest

Selection.first

The first member, or the first matching criteria.

Source and package
Qualified name
Selection.first
Module
selection
Declared in
Selection
Package
libtmux
Source
packages/libtmux/src/selection.ts

Description#

Answers undefined for no match. Use this when zero is an ordinary outcome; use one() when it is not.

Examples#

snapshot.windows.first({ name: "editor" })?.id;
Type parameters
Parameters

Guides#

Pages that discuss first.

Esc

Type to search.

Reference previewOpen reference