Skip to content

feat(tui): search command palette by English keyword and pinyin#1135

Merged
MiMoHardFather merged 1 commit into
mainfrom
fhj-cn-search
Jun 19, 2026
Merged

feat(tui): search command palette by English keyword and pinyin#1135
MiMoHardFather merged 1 commit into
mainfrom
fhj-cn-search

Conversation

@MiMoHardFather

Copy link
Copy Markdown
Collaborator

Chinese-locale users had to switch input methods to use the Ctrl+P palette, since it only matched the localized (Chinese) titles. Now the shared DialogSelect filter also matches latin keywords and a romanized (pinyin) form of the title, so typing "theme", "model", "huihua", or the initials "hh" finds the right item without an input-method switch.

  • add pinyin-pro and util/pinyin.ts (full pinyin + syllables + initials)
  • add keywords?: string[] to DialogSelectOption; extend fuzzysort keys
  • auto-derive command keywords from the stable English value id + slashes

Co-Author By MiMoCode

Chinese-locale users had to switch input methods to use the Ctrl+P
palette, since it only matched the localized (Chinese) titles. Now the
shared DialogSelect filter also matches latin keywords and a romanized
(pinyin) form of the title, so typing "theme", "model", "huihua", or the
initials "hh" finds the right item without an input-method switch.

- add pinyin-pro and util/pinyin.ts (full pinyin + syllables + initials)
- add keywords?: string[] to DialogSelectOption; extend fuzzysort keys
- auto-derive command keywords from the stable English value id + slashes
@MiMoHardFather MiMoHardFather merged commit c57e352 into main Jun 19, 2026
2 of 3 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.

1 participant