Skip to content

Commit 3dcd7a1

Browse files
committed
feat(cli[search]): Include window and pane in default search fields
Previously, `tmuxp search gp-libs` would not find workspaces with a window named "gp-libs" because window/pane fields required explicit `window:` or `pane:` prefixes. Now searches all fields by default: - name (workspace filename) - session_name - path - window (window names) - pane (pane shell commands)
1 parent 161bc56 commit 3dcd7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tmuxp/cli/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
)
6262

6363
#: Default fields to search when no field prefix is specified
64-
DEFAULT_FIELDS: tuple[str, ...] = ("name", "session_name", "path")
64+
DEFAULT_FIELDS: tuple[str, ...] = ("name", "session_name", "path", "window", "pane")
6565

6666

6767
class SearchToken(t.NamedTuple):

0 commit comments

Comments
 (0)