VSCodeVim / VSCodeVim/Vim

Automatic switching the input method

Open
#6,630 1 comment 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

In vim editor, I use the following setting to automatic switch my input method

let g:input_toggle = 1

function! Fcitx2Leave()
   let s:input_status = system("fcitx-remote")
   let g:input_toggle = s:input_status " current imput status
   if s:input_status == 2
      let l:a = system("fcitx-remote -c")
   endif
endfunction

function! Fcitx2Enter()
   let s:input_status = system("fcitx-remote")
   if s:input_status != 2 && g:input_toggle == 2 
      let l:a = system("fcitx-remote -o")
   endif
endfunction
set timeoutlen=150
autocmd InsertLeave * call Fcitx2Leave()
autocmd InsertEnter * call Fcitx2Enter()

Does vim extension for VSCode support such setting?

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

No files, tests, or entry points are named. Start by checking the VSCodeVim documentation and input-handling implementation for support of the shown Vim autocmds and fcitx commands; done means establishing whether this behavior is supported and, if not, defining the required scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vim, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.