Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add option to keep cursor relative to screen when scrolling with scrollPageUp/scrollPageDown commands #22796
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).