WindowTreeFields
Typed filter handles for WindowTree.
Source and package
- Qualified name
-
libtmux::server:: discovery:: Window Tree Fields - Module
- server.discovery
- Package
- libtmux
- Source
- crates/libtmux/src/server/discovery.rs
-
Examples#
use libtmux::query::Filterable as _;use libtmux::{Pane, WindowTree};let windows = WindowTree::filter_fields();let panes = Pane::filter_fields();// `any` asks whether some pane matches, which is not the same question as// filtering the panes themselves: this keeps whole windows.let has_dead_pane = windows.panes.any(panes.pane_dead.eq(true));
Fields2#
| Name | Type | Description |
|---|---|---|
| panes | Many | The panes in this window. |
| window | WindowFields<Window | The window's own fields, the same set Window filters on. |