Repository navigation
Treat app word prefixes as label prefixes in menu search - #10457
benwillems wants to merge 2 commits into
Conversation
|
Reviewed at 7290119. The change is correct and fixes what it says: with a Google Chrome entry installed, It is not marked
#11730 fixes the same report the narrow way. It leaves Second opinion: Codex Medium compared this PR with #11730. It found no defect in either change. It preferred this one, because #11730 leaves the Chromium row first, It confirmed the reorderings #11614 reports, and it found the |
|
This is the search I hit on Omarchy 4.0.4-1. Query A prefix of the app's own name should put that app first, ahead of those actions. This change does that for I also asked on #11614 for the broader rule in #12223, any matching app above menu entries. Either way the top hit here has to be the app. |
|
This stopped merging cleanly once While re-checking it on Checked on an Omarchy ISO worker running the shell from this branch, at fb3d73e against
Second opinion: Codex Medium reviewed the merge and the fix and found no defect in either. It confirmed the |
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryApp searches now give later-word prefixes a better score, so
Reviews (2) · Last reviewed commit: "Keep an app's own name prefix above a la..." · Reviewed by Greptile |
Typing chro scored Setup > Chrome as a label prefix and Google Chrome as a contains-match, so Enter changed the default browser instead of launching the app.
A word prefix scored the same as a label prefix, so two apps met on equal terms and the alphabetical order decided: typing vi put Document Viewer and Image Viewer above Vim. Scoring the word prefix just under a label prefix keeps it above every menu entry with that prefix, which is what fixes chro for Google Chrome, while an app whose name starts with the query still comes first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
fb3d73e to
be6ef29
Compare
|
Rebased onto current quattro (cherry-picked the two ranking commits; kept quattro's appearance.font assertion). |
|
Re-checked after the rebase onto
Several open pull requests fix the same reports, so I compared them: #7661, #11730, #12223, #15171 and #17253. This one is the one to take. #7661 is older and now also covers the Chrome rows, but I've added Second opinion: Codex Medium and muse-wonder (pi, high thinking) reviewed the diff at this head and found no defect. Both called it the smallest fix for the cause, and both called the |


Problem
chrois a prefix of Setup › Browser › Chrome (score 10) but only a contains-match inside "Google Chrome" (score 30). Enter changes the default browser instead of launching the app.Fix
Score a prefix of any word in an app name as a label prefix. The existing app tiebreak (
score -= 5) then wins the equal-prefix case. Exact menu matches stay put — Font still beats FontForge.Fixes #10340
Before
First hit is Setup › Defaults › Browser. Enter changes the default.
After
First hit is Google Chrome. Enter launches the app.
Tests
test/shell.d/menu-test.sh—chroon Google Chrome now outranks Setup/Install/Remove › Chrome. Brave, Zen, and FontForge ranking assertions still pass.Fixes #11614