- Module
- window
- Declared in
- Window
- Package
- libtmux
- Source
- packages/libtmux/src/window.ts
- Other languages
- PythonRubyLuaRustGoJava.NETC++Swift
- link ( options : : MoveWindowOptions ) Promise<void>
-
Link this window into another session, giving it a second placement.
In other ports Link a window into another session
Examples
await window.link({ session: "other" });>>> w = session.new_window(window_name='link_test')>>> s2 = server.new_session(session_name='link_target')>>> w.link(s2)let source = server.new_session("linking-from").await?;let target = server.new_session("linking-to").await?;let window = source.windows().await?.remove(0);
window.link_to(&target, None).await?;
let linked = target.windows().await?;assert!(linked.iter().any(|other| other.id() == window.id()));0 declared, 0 inherited