Got a bug when using vscode shortcut Alt+mouseSelect
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
VScode shortcut "alt+mouse_select" does not work correctly in insert mode
To Reproduce
Steps to reproduce the behavior: For eg. in the following code block, I'd like to change the 3 "manualToPort" to "forceToPort" by only one operation. As far as I know, vim cannot do this. So I use vscode shortcut.
<div class='ui-grid-col-4'><label for='manualToPort'>my label</label></div>
<div class='ui-grid-col-8'><input pInputText id='manualToPort' [(ngModel)]='aps.manualToPorf'/></div>
- press "i" to switch to insert mode
- press and select the 3 words
- sometimes I can successfully select all of them and do things I want to, but most of time I cannot select anything, the cursor just move with my mouse without selecting items
Expected behavior
work like if I unable VSCodeVim
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.16.0
- VSCode version: 1.48.2
- OS: Windows10
my settings:
{
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": ["f", "d"],
"after": ["<Esc>"]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["leader", "v"],
"after": ["<C-v>"]
},
{
"before": ["<space>"],
"after": ["i", "<space>", "<esc>", "<right>"]
}
],
"vim.leader": "<enter>",
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<C-x>": false,
"<C-c>": false,
"<C-v>": false,
"<C-d>": true,
},
"editor.fontSize": 15,
"editor.fontFamily": "'Source Code Pro', Consolas, Dengxian",
// with im-select.exe -- auto unable Chinese input method in normal mode
// "vim.autoSwitchInputMethod.enable": true,
// "vim.autoSwitchInputMethod.defaultIM": "1033",
// "vim.autoSwitchInputMethod.obtainIMCmd": "D:\\Program\\im-select.exe",
// "vim.autoSwitchInputMethod.switchIMCmd": "D:\\Program\\im-select.exe {im}"
}
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 source file, test, or entry point is named. Start by reproducing the Alt+mouse selection failure in VSCode 1.48.2 on Windows 10 with VSCodeVim 1.16.0 and the listed insert-mode settings; done means selection works reliably in insert mode as it does when VSCodeVim is disabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100