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

window.Window.unlink

View as Markdown

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

Remove this placement, leaving the window's other placements intact.

For a window linked into several sessions. A window shared because its sessions are grouped is not linked, and tmux refuses with "window only linked to one session" — a group member leaves by being killed, not by unlinking.

In other ports Unlink a window from a session

Examples

const destination = await server.newSession({ name: "unlink-example" });
await window.link({ session: destination.id });
const placement = (await server.snapshot()).windows.one({
id: window.id,
session: { is: { id: destination.id } },
});
await placement.unlink();
>>> w = session.new_window(window_name='unlink_test')
>>> s2 = server.new_session(session_name='unlink_s2')
>>> w.link(s2)
>>> linked = [x for x in s2.windows if x.window_name == 'unlink_test']
>>> linked[0].unlink()

0 declared, 0 inherited

Esc

Type to search.