Server.window
The one window link this expression matches, captured now, or empty when none does.
Source and package
- Qualified name
-
io.github .libtmux .Server. window - Package
- io.github.libtmux
- Declared in
Server- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
- @Operation(Kind
.READ ) public Optional<Window> window( FilterExpr <Window> expression)@Operation(Kind.READ ) public Optional<Window> window(WindowContext context) -
Description#
Reads as
#windows(FilterExpr)does. A window linked into two sessions is two links, so an expression naming it matches twice.- Parameters
-
-
expression(FilterExpr <Window>) # forwindow(expression) -
context(WindowContext ) # forwindow(context)
-
- Returns
-
empty only when a successful capture contains no match for
window(context) - Raises
-
-
Cardinality
Exception – if more than one link matches for.Multiple Matches window(expression) -
Server
Unavailable – if no daemon is runningException -
Lib
Tmux – if the capture otherwise fails forException window(context)
-