Open Torwang1 opened 3 years ago
Describe the solution you'd like
InputMethodSwitcher.switchInputMethod checks resume is enable.
In my case. Writing code in English, while comment in Chinese. when reenter insert mode, i just want to writting code.
I tried to change
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/fcitx-remote -s {im}"
to
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/fcitx-remote -s com.apple.keylayout.ABC
but it's not working
As I mentioned above, in this setting, you have to include {im}
, if not so the setting won't work.
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/fcitx-remote -s com.apple.keylayout.ABC"
but it's not working
Then I tried in terminal:
❯ fcitx-remote -s com.apple.keylayout.ABC
2023-03-23 16:03:09.844 fcitx-remote[298:10077418] Changing to com.apple.keylayout.ABC
then if you append anything after the command, it will be ignored:
❯ fcitx-remote -s com.apple.keylayout.ABC anything-will-be-ignored
2023-03-23 16:03:19.926 fcitx-remote[313:10077522] Changing to com.apple.keylayout.ABC
So this is how I work around:
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/fcitx-remote -s com.apple.keylayout.ABC {im}
PS. fcitx-remote is similar with im-select
Describe the solution you'd like
InputMethodSwitcher.switchInputMethod checks resume is enable.
In my case. Writing code in English, while comment in Chinese. when reenter insert mode, i just want to writting code.