Skip to content

Commit

Permalink
doc: how to search tmux's panes for a running program
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelLarkin committed Jun 17, 2024
1 parent d6678b0 commit c321098
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/tmux.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,20 @@ select-pane -T "title"
## Sharing a Window Across Sessions

To share a window between two sessions: `tmux link-window -s <src-window> -t <dst-window>`


## 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
<SEARCH STRING>
```

0 comments on commit c321098

Please sign in to comment.