VSCodeVim / VSCodeVim/Vim

Fail to search TAB by expanded "<tab>" in search bar

Open
#9,187 1 comment 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

In the bottom search bar, if we press the TAB key in keyboard, the pattern expands to "tab" with "<>" around and the TAB characters in the file cannot be found.
However if we type "\t" in the search bar, the searching works fine.

To Reproduce

  1. Open a file with TAB character included,
  2. Press "/" to activate the bottom search bar,
  3. Press TAB key in keyboard
  4. Press Enter key in keyboard, and the TAB character in the opened file cannot be found.

Expected behavior

Pattern "" in search bar can match the TAB character in file. If I remember correctly, it worked the same way as "\t" in searching.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: Vim 1.27.3
  • VSCode version: 1.92.0 (system setup)
  • OS: Win 10 (Windows_NT x64 10.0.19045)

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 the VSCodeVim bottom search bar with a file containing a TAB character, comparing the keyboard-expanded "" pattern with the typed "\t" pattern. Done means the expanded pattern finds the TAB character as expected; the payload does not name a source file or test.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.