VSCodeVim / VSCodeVim/Vim

autoSwitchInputMethod not work

Open
#9,449 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
I added autoSwitchInputMethod in settings.json, but it doesn't work.
I have restarted the VSCode Vim plugin and VSCode itself, but it still doesn't work.
I am crazy!
To Reproduce
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "com.apple.keylayout.ABC",
"vim.autoSwitchInputMethod.obtainIMCmd": "/opt/homebrew/bin/im-select",
"vim.autoSwitchInputMethod.switchIMCmd": "/opt/homebrew/bin/im-select {im}"

My im-select locate on /opt/homebrew/bin/im-select

Expected behavior
I hope that disable input method when exiting Insert Mode.

Screenshots
settings.json:
Image

im-select Path:

Image Default input method:

Image

when I input chinese, It can't work
Image

  • Extension (VsCodeVim) version: 1.29.0
  • VSCode version: 1.96.3 (Universal)
  • OS: Macos 14.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on macOS with the shown autoSwitchInputMethod settings and verify the /opt/homebrew/bin/im-select commands independently. Then trace the extension's autoSwitchInputMethod implementation and its Insert Mode transitions; done means leaving Insert Mode reliably switches back to the configured default input method.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, typescript, vscode
Domain
desktop, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.