From c321098c8d7bd390162194428452f52e0548522d Mon Sep 17 00:00:00 2001 From: Samuel Larkin Date: Mon, 17 Jun 2024 11:11:51 -0400 Subject: [PATCH] doc: how to search tmux's panes for a running program --- docs/tmux.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/tmux.md b/docs/tmux.md index dd9861f..6633443 100644 --- a/docs/tmux.md +++ b/docs/tmux.md @@ -23,3 +23,20 @@ select-pane -T "title" ## Sharing a Window Across Sessions To share a window between two sessions: `tmux link-window -s -t ` + + +## Find a Panes Running a Command +find-window [-iCNrTZ] [-t target-pane] match-string + (alias: findw) + Search for a fnmatch(3) pattern or, with -r, regular expression match-string + in window names, titles, and visible content (but not history). The flags + control matching behavior: -C matches only visible window contents, -N matches + only the window name and -T matches only the window title. -i makes the search + ignore case. The default is -CNT. -Z zooms the pane. + + This command works only if at least one client is attached. + +```tmux +CTRL+b + f + +```