Repository navigation
fix(settings): keep row descriptions out of their card's search entry - #3794
Merged
bbedward merged 1 commit intoOct 15, 2026
Merged
Conversation
A card without a description of its own took the first description anywhere inside it, usually a row's that already has its own search entry. 54 cards showed a row's text and matched its words, e.g. Theme color under Source Color's description. A card now only borrows from nested rows that have no entry of their own (no settingKey, or the card's), so descriptions that were only reachable through their card stay searchable.
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.
Description
This PR fixes Settings search showing a row's description on its card.
When a card has no description of its own,
extract_settings_index.pytook the firstdescription:anywhere inside the card, which is usually a row that already has its own search entry. 54 cards showed a row's text in the results and matched its words, so searching "drawing" also listed Wallpaper → Advanced and "tinted" also listed Colors.A card now only borrows a description from nested rows that have no entry of their own (no
settingKey, or the card's own). That matters for cards like Mono Audio or Keyboard → Layouts, whose description only reaches the index through the card, so nothing drops out of search. This follows whatown_scope()already does for the title.Icons and tags are still taken from the whole card the same way. I left them alone, because changing that would cost several cards their result icon or search words.
Type of change
Related issues
None.
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsTested by hand on Hyprland by searching Settings before and after.
settings_search_index.jsonis regenerated (893 entries before and after), and all pre-commit hooks passed. No QML or Go changes, no new strings.