-
Notifications
You must be signed in to change notification settings - Fork 43
Description
Summary - Feature request: "scroll_above_start" setting
The scroll_past_end setting allows the user to scroll below the end of a file so that, when editing at the bottom of a file, the user does not have to enter text at the bottom of the buffer. Instead users can push the bottom of the buffer upwards as far as they like in the visible area of the view, up to the limit of just the bottom line being displayed at the top of the view.
A natural companion setting for this would be scroll_above_start which would allow the user to scroll above the start of a file in the same way that the scroll_past_end setting allows the user to scroll below the end of a file.
The scroll_past_end setting is very useful and I think users would find the increased flexability provided by a scroll_above_start setting very useful as well.
Expected behavior
A new setting: "scroll_above_start": boolean
If the scroll_above_start setting is true and the scroll_lines command is called with a positive value, then the buffer will continue to scroll upwards even when the start of the file is reached, leaving an empty area between the top of the view and the first line of the file. Scrolling upwards will stop when only the top line of the file is visible, although that would now be at the bottom of the view. This is the diametric opposite of what can be achieved when the scroll_past_end setting is set to true.
P.S. scroll_past_start might be a better name than scroll_above_start, at least more in keeping with the name of scroll_past_end.