Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

View as Markdown

Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PythonRubyLuaRustGoJava.NETC++Swift

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

Esc

Type to search.