Skip to content

Match Chinese app names by pinyin initials in menu search - #11160

Open
dakai wants to merge 1 commit into
omacom:quattrofrom
dakai:pinyin-initials-search
Open

dakai wants to merge 1 commit into
omacom:quattrofrom
dakai:pinyin-initials-search

Conversation

@dakai

@dakai dakai commented Sep 10, 2026

Copy link
Copy Markdown

Typing 'xhs' finds 小红书, 'dy' finds 抖音, 'wx' finds 微信.

Both search paths (MenuModel nameSearchText and AppSearch entrySearchText) gain a dependency-free pinyin-initials index: a generated 21k-entry first-letter table for CJK U+4E00-U+9FFF appended to the existing search haystacks, so current substring/acronym scoring applies unchanged.

Trade-offs: Hanzi initials only (Latin is already searchable; passing it through glued cross-word pairs like 'recording capture' -> 'gc', caught by the existing acronym test). Polyphonic characters match their most common reading only.

Tests: new assertions in app-search-test.sh and menu-test.sh cover xhs/dy/wx plus a negative; both suites and menu-guards pass. Full ./test/shell shows only failures that also fail on a clean tree (missing omarchy-pkgs checkout, compositor animation test).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants