microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.74k stars 6.58k forks source link

Please support Chinese Pinyin search in PowerToys Run 请支持中文拼音搜索 #24321

Closed georgel2020 closed 1 year ago

georgel2020 commented 1 year ago

Description of the new feature / enhancement

I hope that I could search files / apps with Chinese Pinyin.

For example, when I want to search "Notepad" in PowerToys Run, I would like to type "jishiben" instead of "notepad", because the Pinyin of "记事本" ("Notepad" in Chinese) is "jì shì běn".

In the file %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Settings\PowerToysRunSettings.json there is a setting called ShouldUsePinyin, showing that Pinyin search is / was supported in PowerToys. (Or maybe the older version of PowerToys? )

The Wox Launcher supports Pinyin search, so I think it is also possible to add this into Powertoys Run.

希望 PowerToys Run 能够支持拼音搜索。

例如,我想在 PowerToys Run 中启动记事本,我希望输入“jishiben”而不是“notepad”,因为“记事本”的拼音是“jì shì běn”。

在文件 %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Settings\PowerToysRunSettings.json 中有一个名为 ShouldUsePinyin 的条目,说明 PowerToys Run(曾经?)支持拼音搜索。

Wox Launcher 支持拼音搜索,所以我认为这个想法是可行的。

Scenario when this would be used?

When I use PowerToys Run to search files / apps.

当我使用 PowerToys Run 搜索文件 / 应用时。

Supporting information

Wox Launcher GitHub Repo 存储库

Wox Launcher Site 官网

PowerToysRunSettings.json

{
  "PreviousHotkey": "",
  "Hotkey": "Alt \u002B Space",
  "UseCentralizedKeyboardHook": false,
  "SearchQueryResultsWithDelay": true,
  "SearchInputDelayFast": 30,
  "SearchInputDelay": 150,
  "SearchQueryTuningEnabled": false,
  "SearchWaitForSlowResults": false,
  "SearchClickedItemWeight": 5,
  "Language": "en",
  "Theme": 0,
  "StartupPosition": 0,
  "QueryBoxFont": "Microsoft Sans Serif",
  "PTRunNonDelayedSearchInParallel": true,
  "PTRSearchQueryFastResultsWithDelay": false,
  "ResultFont": "Microsoft Sans Serif",
  "ShouldUsePinyin": false,
  "AutoUpdates": false,
  "WindowLeft": 192,
  "WindowTop": 187.20000000000002,
  "MaxResultsToShow": 4,
  "ActivateTimes": 366,
  "CustomPluginHotkeys": [],
  "DontPromptUpdateMsg": false,
  "EnableUpdateLog": false,
  "StartWoxOnSystemStartup": true,
  "HideOnStartup": false,
  "HideNotifyIcon": false,
  "LeaveCmdOpen": false,
  "HideWhenDeactivated": true,
  "ClearInputOnLaunch": true,
  "TabSelectsContextButtons": true,
  "RememberLastLaunchLocation": false,
  "IgnoreHotkeysOnFullscreen": false,
  "StartedFromPowerToysRunner": true,
  "Proxy": {
    "Enabled": false,
    "Port": 0
  },
  "LastQueryMode": "Selected"
}
Aira-Sakuranomiya commented 1 year ago

试试关闭PowerToys,把ShouldUsePinyin设置成true,然后启动PowerToys,此时应该就可以使用拼音了~ 就是在UI上没做拼音的开关,但是json里改了之后就能用的样子

cxkun commented 1 year ago

试试关闭PowerToys,把ShouldUsePinyin设置成true,然后启动PowerToys,此时应该就可以使用拼音了~ 就是在UI上没做拼音的开关,但是json里改了之后就能用的样子

厉害了