Skip to content

Commit 8b41806

Browse files
committed
fix(cli/search): Use consistent color semantics with ls command
Change search output to use highlight() for workspace names (L1 primary content) and info() for paths (L2 supplementary info), matching the pattern used in ls.py per CLAUDE.md CLI Color Semantics. Before: names used info() (cyan), paths used muted() (blue) After: names use highlight() (magenta+bold), paths use info() (cyan)
1 parent 945a6cb commit 8b41806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tmuxp/cli/search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,8 @@ def output_result(result: WorkspaceSearchResult, show_path: bool) -> None:
984984

985985
# Human output: formatted text with highlighting
986986
name_display = highlight_matches(fields["name"], patterns, colors=colors)
987-
path_info = f" {colors.muted(fields['path'])}" if show_path else ""
988-
formatter.emit_text(f" {colors.info(name_display)}{path_info}")
987+
path_info = f" {colors.info(fields['path'])}" if show_path else ""
988+
formatter.emit_text(f" {colors.highlight(name_display)}{path_info}")
989989

990990
# Show matched session_name if different from name
991991
session_name = fields["session_name"]

0 commit comments

Comments
 (0)