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
Labels
feature-request Request for new features or functionality
Milestone

Comments

@DaanDeMeyer
Copy link

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).

@alexdima alexdima added feature-request Request for new features or functionality editor labels Mar 27, 2017
@alexdima
Copy link
Member

Possible similar command:

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

@alexdima alexdima added this to the Backlog milestone Mar 27, 2017
@alexdima alexdima removed their assignment Mar 27, 2017
@darekrusin
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 ;)

@alexdima
Copy link
Member

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.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants