window.Window.linkedSessions
TypeScript
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust
- Go
- Java Unavailable
- .NET
- C++ Unavailable
- Swift Unavailable
- Module
- window
- Declared in
- Window
- Package
- libtmux
- Source
- packages/libtmux/src/window.ts
- Other languages
- Python Ruby Lua RustGo Java .NET C++ Swift
-
Every session this window is linked into.
In other ports Every session a window is linked into
- Python
libtmux.Window.linked_sessions - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- Rust
window.Window.linked_sessions - Go
tmux.Window.LinkedSessions - Java no equivalent on
Window - .NET
LibTmux.Window.LinkedSessions - C++
Window::linked_sessionscounts them rather than listing them - Swift no equivalent on
Window
- Python
Examples
window.linkedSessions.map((entry) => entry.name);A window you just made belongs to the session you made it in:
>>> window = session.new_window(window_name="solo", attach=False)>>> [s.session_name for s in window.linked_sessions] == [session.session_name]TrueLink it into a second session and it belongs to both:
>>> guest = server.new_session(session_name="guest")>>> target = f"{guest.session_id}:">>> _ = server.cmd("link-window", "-d", "-s", window.window_id, "-t", target)>>> sorted(s.session_name for s in window.linked_sessions) == sorted(... [session.session_name, "guest"]... )True0 declared, 0 inherited