Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to keep cursor relative to screen when scrolling with scrollPageUp/scrollPageDown commands #22796

Closed
DaanDeMeyer opened this Issue Mar 17, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@DaanDeMeyer
Copy link

DaanDeMeyer commented Mar 17, 2017

It would be great to have an option to keep the cursor relative to the page when scrolling up and down with the scrollPageUp and scrollPageDown (alt+pageUp/alt+pageDown) commands.

For example, with the option enabled and my cursor at the 3rd line on the screen when I press alt+pageDown I would expect both my screen and my cursor to have scrolled down 1 page in the document. The position of my cursor relative to my screen should have stayed the same (eg it should still be at the 3rd line counted from the top of the screen).

@alexandrudima

This comment has been minimized.

Copy link
Member

alexandrudima commented Mar 27, 2017

Possible similar command:

{
        "key": "alt+pageup",
        "command": "editorScroll",
        "args": {
            "to": "up",
            "by": "page",
            "revealCursor": true
        },
        "when": "editorTextFocus"
    }

@alexandrudima alexandrudima added this to the Backlog milestone Mar 27, 2017

@alexandrudima alexandrudima removed their assignment Mar 27, 2017

@darekrusin

This comment has been minimized.

Copy link

darekrusin commented May 30, 2017

@alexandrudima thanks! That was very helpful. After this command it's still not as good as in Sublime Text or Visual Studio, but at least I'm no longer pulling my hair out, so it's an improvement ;)

@alexandrudima

This comment has been minimized.

Copy link
Member

alexandrudima commented Nov 17, 2017

This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 1, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.