VSCodeVim / VSCodeVim/Vim

`<D-d>` in insert mode leaves input mode and starts emulated multi-cursor mode

Open
#6,197 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
When in insert mode, cmd+d leaves insert mode and enters this extension's special multi-cursor mode that is different from the native multi-cursor mode.

To Reproduce
Steps to reproduce the behavior:

Given a document

|Word
Word
Word

Start insert mode i, and press cmd+d.

Word|
Word|
Word

Press esc.

Word|
Word|
Word

Expected behavior

|Word|
Word
Word

One word selected, no mode changes (still in native/insert mode).

Screenshots
If applicable, add screenshots to help explain your problem.
If remapping-related, please attach log output: https://github.com/VSCodeVim/Vim#debugging-remappings.

Actual

image

Expected

image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.18.9
  • VSCode version: 1.53.2
  • OS: macOS 11.2.1

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 reported Cmd+D behavior in VSCode 1.53.2 on macOS while in insert mode, using the documented sequence: press i, Cmd+D, then Esc. Trace the extension's insert-mode key handling and multi-cursor mapping; done means Cmd+D selects one word without leaving insert mode or entering the extension's special multi-cursor mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.