Skip to content

Settings search: also find parts of words - #901

Open
4di-hello wants to merge 1 commit into
LeanBitLab:mainfrom
4di-hello:feature/settings-search-word-parts
Open

4di-hello wants to merge 1 commit into
LeanBitLab:mainfrom
4di-hello:feature/settings-search-word-parts

Conversation

@4di-hello

Copy link
Copy Markdown
Contributor

The settings search only finds words that start with the search term. In languages with compound words this misses a lot: in German, "korrektur" doesn't find "Autokorrektur", "taste" doesn't find "Löschtaste". In English, "correct" doesn't find "Autocorrect".

  • Search terms of 3 or more letters now also find settings whose title or description contains them.
  • These results come after the existing ones (title start, title word, description word), so the order of the best matches doesn't change.
  • Shorter terms behave as before, to avoid noise.

Small change in SettingsContainer.filter (the comment there says filtering could be more elaborate). Unit tests pass; in daily use in my fork since October.

🤖 Generated with Claude Code

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
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