Cmd+D loses multiple selections
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
What happened: After a recent VSCodeVim update (since v0.10.12?), pressing Cmd+D sometimes loses multiple selections
What did you expect to happen: Selections should be maintained when using Cmd+D to select multiple occurrences
How to reproduce it (as minimally and precisely as possible):
- In normal mode, position the cursor within a word that is repeated within the current buffer
- Press
viwto select the current word in visual mode - Press Cmd+D; another cursor is created at the next occurrence, and the status bar indicates that the editor is still in visual mode, however the selection is lost and the cursors are moved to one character after the ends of the words (preventing the ability to use
cto replace both selected occurrences).
Environment: macOS
- Extension (VsCodeVim) version: 0.10.3
- VSCode version: 1.19.2
- OS version: 10.12.6
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
Reproduce the issue in the VSCodeVim extension using the stated macOS, VSCode, and extension versions: enter visual mode with viw, then press Cmd+D on repeated words. Trace the handling of visual selections and multiple cursors, and verify that both occurrences remain selected so c can replace them together.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100