Session.FindWindowAsync
Reads one of this session's windows by identifier.
Source and package
- Qualified name
-
LibTmux .Session. Find Window Async - Namespace
- LibTmux
- Declared in
Session- Package
- LibTmux
- Source
- src/LibTmux/Session.Relations.cs
- async Task<Window?> FindWindowAsync( Window
Id id, CancellationToken cancellationToken = default )async Task<Window?> FindWindowAsync( string target, CancellationToken cancellationToken = default ) -
Description
A typed identifier is unique in a session that links a window at only one index; the string overload also accepts a window name, which two windows can share. When this session links the same window at more than one index, this returns whichever placement tmux lists first.
- Parameters
-
-
id(WindowId ) – The window identifier to look for. forFindWindowAsync(id, cancellationToken) -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default -
target(string) – A tmux window target inside this session. forFindWindowAsync(target, cancellationToken)
-
- Returns
-
The window, or null when this session has no such window.
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Session.FindWindowAsync.
tmux command
task materialThe tmux commands behind FindWindowAsync.
list-windows -t session scope, cmd_list_windows_exec tmux C API
task materialThe C declarations in tmux that implement these commands.