VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.74k stars 1.31k forks source link

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

Open wellerz opened 1 month ago

wellerz commented 1 month ago

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):

wellerz commented 1 month ago

If we write "< tab >" (with no spaces between) in the issue description above or in comment here, nothing is displayed for it. So I have to update the description and mention it as "tab" with "<>" around.