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 disable Scroll Beyond Last Line #4962

Open
1 task done
wzxu opened this issue Mar 12, 2023 · 10 comments
Open
1 task done

Option to disable Scroll Beyond Last Line #4962

wzxu opened this issue Mar 12, 2023 · 10 comments
Labels
editor Feedback for code editing, formatting, editor iterations, etc enhancement [core label]

Comments

@wzxu
Copy link

wzxu commented Mar 12, 2023

Check for existing issues

  • Completed

Describe the feature

VS Code parity. An option to stop the editor from scrolling and showing all the extra empty space when already at the end of file.

image

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@wzxu wzxu added enhancement [core label] triage Maintainer needs to classify the issue labels Mar 12, 2023
@JosephTLyons JosephTLyons added editor Feedback for code editing, formatting, editor iterations, etc and removed triage Maintainer needs to classify the issue labels Mar 13, 2023
@JosephTLyons
Copy link
Contributor

Wondering if we should offer a simple boolean, like VS Code, or maybe some more fine grained thing, like a float that represents how much over scrolling occurs.

@Joker666
Copy link

Joker666 commented Mar 25, 2023

A bool would suffice for now. This is an absolute need for me as I cannot stand scrolling beyond the last line.

@vitormalencar
Copy link

I would love to see this option as well

@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
@zhuweiyou
Copy link

I really need this bool option, because I can roll down. I think there is still content below, which is not in line with my habits in VSC and IDEA.

@gopeter
Copy link

gopeter commented Feb 15, 2024

I really need this bool option, because I can roll down. I think there is still content below, which is not in line with my habits in VSC and IDEA.

Check out the latest release, there is a new option called vertical_scroll_offset

Edit

Oh, this isn't related to this issue. Thought this option would disable this

@eproxus
Copy link

eproxus commented Feb 26, 2024

A partial workaround with keymap.json if you, like me, are using PageUp and PageDown to scroll:

[
  {
    "context": "Editor",
    "bindings": {
      // Prevent scrolling "off-screen" at the bottom of the file
      "pageup": "editor::MovePageUp",
      "pagedown": "editor::MovePageDown",
    }
  }
]

@Erlendms
Copy link

Erlendms commented Mar 17, 2024

+1 for this.

I get that it might be irrational, but I find it super annoying when I scroll down and I just get blank space. 😛

I’d link it to the vertical_scroll_margin so that scrolling down with a mouse/trackpad would stop the same place as doing it with cmd+down.

Here’s an example, where I’ve set the vertical_scroll_margin at 10. 👇🏻
I would want scrolling with the trackpad to stop at the same place.
CleanShot 2024-03-17 at 01 42 30@2x

@thedocbwarren
Copy link

Monitoring this as well. Need this option.

@pekeler
Copy link

pekeler commented May 28, 2024

I'd be very interested in reading a reason from people who like the last line of code at the top of their editor instead of the bottom because I can't imagine why anyone might like it (unless this is some kind of accessibility thing for people who can't move their eyeballs vertically?).

@guillemap
Copy link

The only utility I've found is when comparing two files side-by-side and you need the last line to be at a certain height in the display... Anyways I'd also like the bool! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor Feedback for code editing, formatting, editor iterations, etc enhancement [core label]
Projects
None yet
Development

No branches or pull requests