
英語| 簡體中文
brew tap daipeihust/tap
brew install im-select或者,您可以在控制台中運行以下命令:
curl -Ls https://raw.githubusercontent.com/daipeihust/im-select/master/install_mac.sh | sh IM選擇程序將下載到您/usr/local/bin/ path。
下載im-select.exe,然後將其移至適當的路徑。 (如果需要64位版本,則可以下載此版本。)
您不必為Linux安裝此功能。 Linux具有切換輸入方法的工具
如果您的路徑包含/usr/local/bin ,則可以使用im-select而不是/usr/local/bin/im-select
/usr/local/bin/im-select/usr/local/bin/im-select imkey例如/usr/local/bin/im-select com.apple.keylayout.US
@mengbo為IBU提供了此配置
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "xkb:us::eng",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/ibus engine",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/ibus engine {im}"
@vel4eg為xkb-switch提供了此配置
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "us",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/local/bin/xkb-switch",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/xkb-switch -s {im}"
@yunhao94為FCITX提供了此配置
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "1",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/fcitx-remote",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/fcitx-remote -t {im}",
@DRQ為GDBU提供此配置
將gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().currentSource.index" | awk -F'[^0-9]*' '{print $2}'進入get-im.sh。
將gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[$1].activate()"
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "0",
"vim.autoSwitchInputMethod.obtainIMCmd": "<path to get-im.sh>",
"vim.autoSwitchInputMethod.switchIMCmd": "<path to set-im.sh> {im}",
@igorechek06為qdbus提供了此配置
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "0",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/qdbus org.kde.keyboard /Layouts getLayout",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/qdbus org.kde.keyboard /Layouts setLayout {im}",
im-select.exe是命令行程序,但不能在CMD或PowerShell中使用。這是微軟的錯誤,鍵盤API不支持CMD和PowerShell。我建議你刺傷。
注意:不需要Git-Bash。它僅用於獲取當前輸入方法密鑰,這是Vscodevim的配置中所需的。
/path/to/im-select.exe/path/to/im-select.exe locale注意:Windows中的路徑就像:C: Users Path to file
如果您發現一些問題,歡迎創建拉動請求!
如果這個項目對您有所幫助,請給!
如果您喜歡的話,給我買咖啡!如果您有任何問題,可以通過電子郵件與我聯繫!


該項目是根據MIT許可證的條款獲得許可的。