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

Option to not centre the cursor when switching between buffers #7355

Open
DerekLeach opened this issue Jun 17, 2023 · 1 comment · May be fixed by #7568 or #10559
Open

Option to not centre the cursor when switching between buffers #7355

DerekLeach opened this issue Jun 17, 2023 · 1 comment · May be fixed by #7568 or #10559
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@DerekLeach
Copy link

When I switch between buffers the view is always moved up or down so that the cursor is vertically centred on the screen. When I rapidly flip back and forward between two buffers using gn and gp my eyes are anticipating a certain shape to the text on the screen but this is confused when the text keeps moving up or down a few lines so that it takes me a moment to reorient myself. This also happens when using the buffer picker.

It would be great if there were an option to keep the previous scroll location and not automatically centre the cursor vertically on the screen each time.

@t-monaghan
Copy link

I've had an attempt at this issue with #7414

I just noticed that @DerekLeach mentions having this as an option. My experience is that this ViewPosition centering adds friction to my code comprehenesion, and I would have the preference that restoring the ViewPosition is the default behaviour.

Again, I'm very green in this area, so I would appreciate some guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment