VSCodeVim / VSCodeVim/Vim

easymotion scrolls to cursor if file was scrolled

Open
#4,856 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/plugin
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
I have a cursor on line 2
I scroll file for few pages
When I activate -- EASYMOTION INPUT -- (pressing <Leader><Leader>s
It scrolls me back to the very top where my cursor is.

But I wanted to navigate on the part of file where I was few screens down.

To Reproduce
Steps to reproduce the behavior:

  1. Open a file with many lines
  2. Set cursor on line 2
  3. Scroll down few screens (not move cursor, but scroll file)
  4. Activate -- EASYMOTION INPUT -- (pressing <Leader><Leader>s
  5. Get scrolled back to very top

Expected behavior
It doesn't scroll and I can navigate on exact scroll position

Screenshots
easymotion

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.14.2
  • VSCode version: 1.45.0
  • OS: Ubuntu 18.04

Additional context
If this is not considered as a bug is that any way how to make it stop do that or should I create feature request?

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 reproducing the issue in VSCode with the VsCodeVim extension and the reported EasyMotion key sequence. Trace the EasyMotion behavior responsible for restoring the cursor view, then verify that activating it preserves the user's current scroll position while still allowing navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.