feat(gui): Sort by relevance checkbox (--rank)#13
Merged
Conversation
…ptions Slice 3 (final surface) of ranking — the desktop equivalent of --rank. - _mixin_build: new rank_var + "Sort by relevance" checkbox in Advanced Search Options, with a tooltip noting it needs the index (Use Index). - _cli_runner._build_command_from_values: rank param → appends --rank. Both GUI dispatch paths (subprocess pipx + in-process frozen) use this shared builder, so both get it. - _mixin_search: pass rank from the checkbox on both search call sites. - _mixin_data: persist rank in settings + saved-search params (save/load/restore). - _mixin_suites: honor a saved search's rank when run in a suite. - tests: test_build_command_rank (flag emitted when on, absent when off). - docs: CHANGELOG + USER_GUIDE Advanced Options list. Ranking is now on all four surfaces: CLI, Python API, MCP, GUI. No version bump. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Robert D. Schoening <bobschoening@gmail.com>
exbuf
marked this pull request as ready for review
July 21, 2026 01:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Slice 3 (final) of relevance ranking — a "Sort by relevance" checkbox in the GUI's Advanced Search Options, the desktop equivalent of
--rank. Ranking is now on all four surfaces: CLI, Python API, MCP, and GUI.Wiring (end to end)
_mixin_build):rank_var+ checkbox, tooltip notes it needs the index (Use Index)._cli_runner._build_command_from_values):rankparam → appends--rank. This is the shared builder used by both GUI dispatch paths — subprocess (pipx) and in-process (frozen) — so both get it (per the two-path-dispatch caution)._mixin_search): both Standard Search call sites passrankfrom the checkbox._mixin_data): saved in settings + saved-search params (save/load/restore)._mixin_suites): a saved search'srankis honored when run in a suite.Verified
test_build_command_rank(flag emitted when on, absent when off); all GUI modules import.Docs
CHANGELOG (Unreleased) + USER_GUIDE Advanced Options list.
🤖 Generated with Claude Code