libtmux Reference MCP Search
On this page

window.navigation.Window.session

View as Markdown

Module
window.navigation
Declared in
Window
Package
libtmux
Source
crates/libtmux/src/window/navigation.rs
session ( self ) Result<Option<Session>, Error>
method [source]
method [source]
session

Return the session this window was reached through.

This re-reads tmux rather than the snapshot, so a session renamed or removed since discovery is reported as it is now. Ok(None) means the session no longer exists.

Errors

Returns an error when the session listing fails.

Discussed in Traversal

0 declared, 0 inherited

Esc

Type to search.