VSCodeVim / VSCodeVim/Vim

'Add Selection To Next Find Match' (Cmd+D) in insert mode doesn't select word

Open
#3,369 3 comments 4 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

Issue Type: Bug

Cmd+D works as expected in normal mode.
However, in insert mode, it doesn't add a selection for the next match but just adds a cursor at the end of the match instead. It looks like it selects the whole match, but then the selection is lost again and just the cursor remains.
First part of the gif shows how it works without the extension, second part with the extension:
output_org
Default values for vim.useCtrlKeys and vim.handleKeys.

Extension version: 1.0.1
VS Code version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:48:31.260Z)
OS version: Darwin x64 18.2.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (8 x 2500)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (1.23GB free)
Process Argv -psn_0_6936221
Screen Reader no
VM 0%

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 Cmd+D in insert mode with the reported default vim.useCtrlKeys and vim.handleKeys settings, then trace the key handling and selection behavior. Done means the next matching word remains selected in insert mode, as it does in normal mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
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.