← 输入框|github.com|刷新
Skip to content

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

Open
4di-hello wants to merge 2 commits into
LeanBitLab:mainfrom
4di-hello:feature/settings-search-keywords
Open

4di-hello wants to merge 2 commits 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

Builds on # (it contains that commit).

Users search with their own words, which often aren't in the title or description: "color" for the theme, "haptic" for vibration, "swipe" for gesture typing, "copy" for the clipboard history.

  • 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 and description matches.
  • All keys in the list exist in the current settings (checked against Settings and SettingsWithoutKey).

Feel free to take only # if you'd rather not have the extra strings.

🤖 Generated with Claude Code

4di-hello and others added 2 commits November 22, 2026 11:11
The search only found words starting with the search term. In languages with
compound words (German "Löschtaste", "Autokorrektur") and for words like
"Autocorrect", a part in the middle was not found. Terms of 3 or more letters
now also find settings whose title or description contains them; these
results come after the existing ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VuiaMhLXwhErf9shhrr1uD
Users search with their own words: "color" for the theme, "haptic" for
vibration, "swipe" for gesture typing. A string array lists additional words
per setting key (English and German); a setting is found if one of its words
starts with the search term. These results come after title and description
matches. Other languages can translate the array or leave it out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VuiaMhLXwhErf9shhrr1uD
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.

1 participant