
英语| 简体中文
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许可证的条款获得许可的。