- 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
- Python
libtmux.Window.unlink - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua
libtmux.WindowLink:unlink - Rust
window.Window.unlink - Go
tmux.Window.Unlink - Java
io.github.libtmux.Window.Window.unlink - .NET
LibTmux.Window.UnlinkAsync - C++
libtmux::Window::unlink - Swift
Server.unlink(_:)
- Python
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