Scroll by percentage of the current page values
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
in Vim, there is an option to jump the scroll according to the percentage of the document.
{count}%
where count is in number. e.g: typing 50% in normal mode would scroll to position 50% of the page current value. The challenge is to know the current value of page length, as some page updates the more you scroll the pages.
Excerpt from Vim documentation
{count}% Go to {count} percentage in the file, on the first
non-blank in the line |linewise|. To compute the new
line number this formula is used:
({count} * number-of-lines + 99) / 100
See also 'startofline' option. {not in Vi}
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
No file or test is named in the issue. Start by locating Vimium’s normal-mode scrolling entry point and compare its target calculation with Vim’s {count}% formula. Done means percentage commands scroll to the corresponding current-page position, including pages whose length changes as they are scrolled.
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