SessionTreeFields
Typed filter handles for SessionTree.
Source and package
- Qualified name
-
libtmux::server:: discovery:: Session Tree Fields - Module
- server.discovery
- Package
- libtmux
- Source
- crates/libtmux/src/server/discovery.rs
-
Description#
The session's own fields sit under
session, andwindowsis the relation that makes a question about a session's contents expressible.Examples#
use libtmux::query::Filterable as _;use libtmux::{SessionTree, WindowTree};let sessions = SessionTree::filter_fields();let windows = WindowTree::filter_fields();// The session's own fields sit beside the relation rather than behind it, so// a question about the session and a question about what it contains compose.let building = sessions.session.session_name.starts_with("build").and(sessions.windows.any(windows.window.window_name.eq("editor")));
Fields2#
| Name | Type | Description |
|---|---|---|
| windows | Many | The windows under this session. |
| session | SessionFields<Session | The session's own fields, the same set Session filters on. |