Automatic switching the input method
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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