libtmux Reference MCP Search
On this page

libtmux.Window.unlink

View as Markdown

Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py

Unlink this window from the current session via $ tmux unlink-window.

Examples

>>> 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()
Parameters
  • kill_if_last ( bool | None ) – Kill the window if it is the last window in the session (-k).

0 declared, 0 inherited

Esc

Type to search.