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

Scroll-off for top of document #12111

Open
lizclipse opened this issue Nov 22, 2024 · 2 comments
Open

Scroll-off for top of document #12111

lizclipse opened this issue Nov 22, 2024 · 2 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@lizclipse
Copy link
Contributor

I quite like having the buffer I'm working on centred roughly vertically, and for a file of a decent size I can usually do that, but if I'm working on a smaller file, or at the top of any file, then I cant centre anymore. An option to allow scrolloff to support scrolling off the top of the document would be very handy.

@lizclipse lizclipse added the C-enhancement Category: Improvements label Nov 22, 2024
@TornaxO7
Copy link
Contributor

TornaxO7 commented Nov 24, 2024

May I ask if you could give a little example please? This sounds like the scrolloff option (first option after clicking on the link).

@lizclipse
Copy link
Contributor Author

That works for the bottom of the document. Currently, when scrolloff is set to 0, you can scroll down until the entire document is off the screen, what I'm looking for is the ability to do the same from the top, ie if you start with the cursor at line 1 and at the very top of the screen, then you could scroll up (eg z<up>) until the top line of the document is at the bottom of the screen.

Mostly, I'd like some ability to position the top few lines of the document around the middle of the screen by moving the document view above it, which I think would be best done by just having a reflection of the scroll behaviour that you can do from the bottom, but if there is a better way that would also be fine.

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants