Skip to content

fix(settings): keep row descriptions out of their card's search entry - #3794

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:settings-index-own-description
Oct 15, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:settings-index-own-description

Conversation

@Conava

@Conava Conava commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

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.py took the first description: 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 what own_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

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

None.

Screenshots / video

Checklist

Tested by hand on Hyprland by searching Settings before and after. settings_search_index.json is regenerated (893 entries before and after), and all pre-commit hooks passed. No QML or Go changes, no new strings.

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.
@bbedward
bbedward merged commit 6b40abe into duxlabs-dev:master Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants