libtmux Reference MCP Search
On this page

libtmux.Window.link

View as Markdown

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

Link this window to another session via $ tmux link-window.

Examples

>>> w = session.new_window(window_name='link_test')
>>> s2 = server.new_session(session_name='link_target')
>>> w.link(s2)
Parameters
  • target_session ( str | Session ) – Target session to link the window to.

  • target_index ( str | None ) – Target window index in the destination session.

  • kill_existing ( bool | None ) – Kill target window if it exists (-k flag).

  • after ( bool | None ) – Insert after the target window (-a flag).

  • before ( bool | None ) – Insert before the target window (-b flag).

  • detach ( bool | None ) – Do not make the linked window active (-d flag).

0 declared, 0 inherited

Esc

Type to search.