libtmux Reference MCP Search
On this page

window.Window.unlink

View as Markdown

Module
window
Declared in
Window
Package
@libtmux/libtmux
Source
packages/libtmux/src/window.ts

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.

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();

0 declared, 0 inherited

Esc

Type to search.