`gg` Should Reset Search Results Cycle
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi, when cycling through the search results via n, and pressing gg in between to go back to top, it won't reset the cycle, i.e. another press of n will show the next search result after the one showed by the last press of n instead of showing the first one. This is not how Vi(m) works, and what's even more annoying, this has been fixed for a at least one version already! I remember that it didn't work for a long time, then it worked suddenly (can't remember the version number) but now it apparently stopped again.
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 search-result cycling with n, pressing gg between results, then pressing n again. Trace the search navigation entry point that handles these keys; done means n returns to the first search result after gg, matching Vim behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100