Skip to content

Settings search: additional search words for some settings - #902

Merged
LeanBitLab merged 1 commit into
LeanBitLab:mainfrom
4di-hello:feature/settings-search-keywords
Nov 27, 2026
Merged

LeanBitLab merged 1 commit into
LeanBitLab:mainfrom
4di-hello:feature/settings-search-keywords

Conversation

@4di-hello

@4di-hello 4di-hello commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Users search with their own words, which often aren't in the title or description: "dark" for the colors, "haptic" for vibration, "swipe" for gesture typing, "backspace" for the delete swipe.

  • A string array settings_search_keywords lists additional words per setting key (key|word word ...), English and German for now. Other languages can translate it or leave it out; without it nothing changes.
  • A setting is found if one of its words starts with the search term. These results come after the title, title word and description matches, before parts of words (Settings search: also find parts of words #901).
  • The list only contains words the existing search misses. A test checks for English and German that every entry points to an existing setting and that each word finds its setting only because of the list.

🤖 Generated with Claude Code

@LeanBitLab LeanBitLab left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Please rebase after #901 and fill in the PR reference. Add a test that every keyword entry points to an existing setting, and remove the runCatching so loading errors aren't hidden. Please also keep the list to words that find something title, description and partial matching miss.

Some settings can't be found by the words people use for them, e.g. "dark"
for the colors or "backspace" for the delete swipe. A list of additional
words per setting (English and German) is searched after title, title words
and description, before parts of words.

The list only has words the search doesn't find anyway. A test checks for
both languages that every entry points to an existing setting and that each
word finds its setting only because of the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@4di-hello
4di-hello force-pushed the feature/settings-search-keywords branch from 3be9f5f to e794f0e Compare November 27, 2026 06:35
@4di-hello

Copy link
Copy Markdown
Contributor Author

Thanks! Rebased onto main after #901. The runCatching is gone. New tests (English and German) check that every entry points to an existing setting and that each word only finds its setting because of the list. Words the title, description or partial search already find are removed.

@LeanBitLab LeanBitLab left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the requested changes are addressed: runCatching is gone, redundant words are removed, and the new keyword tests pass on current main.

@LeanBitLab
LeanBitLab merged commit 9b3e44c into LeanBitLab:main Nov 27, 2026
1 check 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