Skip to content

mac: search command descriptions in the palette - #182

Merged
khoi merged 2 commits into
mainfrom
fix/palette-description-ranking
Aug 8, 2026
Merged

mac: search command descriptions in the palette#182
khoi merged 2 commits into
mainfrom
fix/palette-description-ranking

Conversation

@khoi

@khoi khoi commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Why

Command descriptions were absent from palette search and display fallback. Mixed-field matches also needed stable ranking, and a description-only match could leave an unrelated subtitle visible.

What changed

Palette search now includes title, subtitle, and description. Results rank by the weakest field touched: title, then subtitle, then description, with source order preserved. When a match uses a hidden description, the row displays and highlights that description.

Verification

  • Terminal command palette suite passed 20 tests
  • make mac-check passed
  • Simplify and diff checks passed

@khoi khoi added the enhancement New feature or request label Aug 8, 2026
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

SupaReview

LGTM

Both the bug/breakage audit and the code-quality audit found no qualifying issues. The patch consistently carries description-source matches through ranking and highlighting, preserves deterministic source ordering for ties, and updates the displayed subtitle only when a hidden description is actually matched (or when no subtitle exists). The changed call paths and focused tests align with that behavior.

Review type: Full review

Reviewers: thermo-nuclear-review-subagent, thermo-nuclear-code-quality-review-subagent

@tuist

tuist Bot commented Aug 8, 2026

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
supatermUITests 0 % 76 0 76 6bb50d8d9

Builds 🔨

Scheme Status Duration Commit
supatermUITests 2m 7s 6bb50d8d9

@khoi

khoi commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Command description search

Searching scrollback finds Clear Screen through its description and highlights the matched text.

Supaterm command palette with scrollback in the search field. One result, Clear Screen, shows the description Clear the screen and scrollback. The word scrollback is highlighted, while it does not appear in the title.

Descriptions were only tooltips, so commands could hide useful search
context.

Show the secondary field that produced each match and rank results by the
weakest field touched while preserving source order within each tier.
@khoi
khoi force-pushed the fix/palette-description-ranking branch from d4d42ea to 41fde8d Compare August 8, 2026 20:34
@khoi
khoi enabled auto-merge August 8, 2026 20:37
Description search adds valid lower-ranked results for the initials query.
Keep the UI check focused on filtering and the title match's first-place
rank.
@khoi

khoi commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Changes since last review:

  • Updated the word-initial UI check to allow valid description matches while still checking that the query filters rows.
  • Kept the title-only match first.

Commit: 5af410b
Tests: make mac-check; make mac-test (1,714 tests); make mac-test-e2e (45 tests); make mac-scan-dead-code; UI test target build with a 12-shard plan; serialized pre-push gates.

@khoi
khoi merged commit 9c28137 into main Aug 8, 2026
19 checks passed
@khoi
khoi deleted the fix/palette-description-ranking branch August 8, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant