VSCodeVim / VSCodeVim/Vim

Add selection to the next find much doesn't work

Open
#4,277 0 comments 0 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

Describe the bug
I have remapped this shortcut because vim uses ctrl+d, but it just finds the first two matches. After that, it doesn't add selection to the other words.

To Reproduce
Steps to reproduce the behavior:
1 - Remap this command "command": "editor.action.addSelectionToNextFindMatch",
2 - Go to a file where it is at least 3 occurrences of the same word. Put your cursor above one of this and hit the previously remapped shortcut three times. You will see that only two of three words have been selected,

Expected behavior
Expect to select the next occurrence every time I hit the shortcut.

Screenshots

image

As you can see only two of the classNames are selected.

  • Extension (VsCodeVim) version: v1.11.3
  • VSCode version: 1.41.0 insider
  • OS: Windows 10 (WSL2), Mac os seems to work fine.

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 issue with the remapped command editor.action.addSelectionToNextFindMatch in a file containing at least three occurrences, comparing Windows/WSL2 with macOS. Trace the command's selection handling and verify that repeated shortcuts select each subsequent occurrence, then add regression coverage if the existing test structure exposes this command.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.