philc / philc/vimium

Feature request: remember last scroll position

Open
#2,261 7 comments 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

Use case:
You're reading and scrolling a rather larger website and in the middle of it you want to go back to the top just to look up the article's date for example. But then you want to go back reading where you left off. Now you have to use a combination of d and j, which can take quite a bit of time and be bothersome. But if vimium would remember the last position before gg or G was hit, there could be a new shortcut for returning to the old scroll position.
Another scenario would be when you wanted to scroll to the bottom (G) to quickly take a glance at the conclusion of the article, but then you decide to continue reading.

I suggest gu or gb for this shortcut. (g-undo / g-back ). gb would be particularly good because
g and b are close on the keyboard, enabling one-handed usage.

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

The issue names no files, entry points, or tests. Start by locating the existing scroll commands and their handling of gg and G, then determine how a previous position can be retained and restored by a new shortcut. Done means returning to the position from before the last jump without disrupting normal scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.