libtmux Reference MCP Search
On this page

libtmux.Pane.find_window

View as Markdown

Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
find_window ( self , match_string : str , match_content : bool | None = None , case_insensitive : bool | None = None , match_name : bool | None = None , regex : bool | None = None , match_title : bool | None = None ) None
method [source]
method [source]
find_window

Search for a window matching a string via $ tmux find-window.

Opens a choose-tree filtered to matching windows.

Examples

>>> pane.find_window('sh')
Parameters
  • match_string ( str ) – String to search for in window names, titles, and content.

  • match_content ( bool | None ) – Match visible pane content (-C flag).

  • case_insensitive ( bool | None ) – Case-insensitive matching (-i flag).

  • match_name ( bool | None ) – Match window name only (-N flag).

  • regex ( bool | None ) – Treat match string as a regex (-r flag).

  • match_title ( bool | None ) – Match pane title (-T flag).

0 declared, 0 inherited

Esc

Type to search.