After pressing %, and empty / search does not use the word picked up by %.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Bug Report
What happened and how to reproduce:
Given the document:
(1)
foo (2)
bar (3)
foo (4)
bar (5)
foo (6)
bar (7)
With the cursor at the beginning, search by typing "/foo" to go to the second line.
Then navigate down to the third line and type "%" on bar. This jumps us to line 5.
Now type "/". In vim, this takes you to line 5. But in vscode, it takes you to line 6. The /-based searches are not updated by the word from %.
What did you expect to happen:
I expected % to update the /-search, just like in vi/vim.
Environment:
- Extension Name: vim
- Extension Version: 0.11.3
- OS Version: Darwin x64 17.4.0
- VSCode version: 1.21.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported sequence in the VSCode Vim extension using the provided document: search for “foo”, move to “bar”, press “%”, then press “/” and Enter. Trace the search state updated by % and compare it with Vim’s behavior; done means the subsequent empty / search returns to the word selected by %.
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
- 42/100