philc / philc/vimium

[Feature Request] Make Cycling Through Search Results More Vim Flavoured

Open
#3,030 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

Currently, search always starts at the top of the page and cycling through the search results leads downwards to the end of the page. In vim however, pressing n always shows the next search result under the cursor.

I don't know how the exact equivalent of this behaviour would look like in vimium, since there is no cursor here, but I'd love it if e.g. pressing ggn would show the first search result on the page. Currently, if you have already cycled some way downwards, n always invokes the result following the last one, no matter whether the viewpoint has changed.

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 tracing how search results are selected and scrolled when cycling with n. Compare the current behavior with the requested viewport-relative behavior, including the ggn example. Done means the navigation behavior is specified and implemented consistently for results above and below the current viewpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.