VSCodeVim / VSCodeVim/Vim

Search mode deletes characters in document on backspace

Open
#8,816 0 comments 2 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 / To Reproduce

Press the / key to go into search mode and type a few characters. Pressing backspace to delete the characters to change the search term deletes the characters in the document instead of deleting the characters in the search term.

Expected behavior
It should delete the characters in the search term and not change the document at all.

Screenshots
https://github.com/VSCodeVim/Vim/assets/2061889/af7e4e49-07c4-4fab-b23e-4fa5ca8e2d42

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.27.2
  • VSCode version: 1.85.1
  • OS: Windows_NT x64 10.0.22621

Additional context
Doesn't seem to be related to conflicts with other extensions, as the problem persists when all other extensions are disabled.

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 in VSCodeVim 1.27.2: enter search with /, type a term, and press Backspace. Trace the search-mode key handling and verify that Backspace edits only the search term; done means the document remains unchanged while the search term is shortened.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.