philc / philc/vimium

`gg` Should Reset Search Results Cycle

Open
#4,004 1 comment 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.