When searching in a document, it's nice how the window view gets centered on the search term (when the search term is further down the page, out of view from where you started).
However, when scrolling with the mouse, if one scrolls all the way to the bottom, you end up with a mostly-blank window, with only the last line showing at the top. It would probably be more useful if, when scrolling all the way down, the view were left in the same way as if a search had landed you at the last line of the doc (that is, with the last line somewhere near the middle of the window). Or possibly with the view centered, like what "Scroll to current line" does.
---John
On Thu, Feb 14, 2008 at 8:31 PM, John Gabriele jmg3000@gmail.com wrote:
However, when scrolling with the mouse, if one scrolls all the way to the bottom, you end up with a mostly-blank window, with only the last line showing at the top.
I think this feature was added on 2007-11-06, ~line 425 of src/document.c :
SSM(sci, SCI_SETENDATLASTLINE, FALSE, 0);
Personally, I think it is a little confusing, it appears to me that the document has a bunch of blank lines at the end that really aren't there. Maybe there should be a preference option for this?
- Jeff
On Thu, 14 Feb 2008 23:56:31 -0600, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
On Thu, Feb 14, 2008 at 8:31 PM, John Gabriele jmg3000@gmail.com wrote:
However, when scrolling with the mouse, if one scrolls all the way to the bottom, you end up with a mostly-blank window, with only the last line showing at the top.
I think this feature was added on 2007-11-06, ~line 425 of src/document.c :
SSM(sci, SCI_SETENDATLASTLINE, FALSE, 0);
Personally, I think it is a little confusing, it appears to me that the document has a bunch of blank lines at the end that really aren't there. Maybe there should be a preference option for this?
Good idea, I've just added a hidden pref "scroll_stop_at_last_line". Set it to true, to stop scrolling at the last line, like it was before 2007-11-06.
Regards, Enrico
On Fri, Feb 15, 2008 at 11:26 AM, Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 14 Feb 2008 23:56:31 -0600, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
Maybe there should be a preference option for this?
Good idea, I've just added a hidden pref "scroll_stop_at_last_line". Set it to true, to stop scrolling at the last line, like it was before 2007-11-06.
Works great. Thank you.
---John
On Thu, 14 Feb 2008 21:31:20 -0500, "John Gabriele" jmg3000@gmail.com wrote:
When searching in a document, it's nice how the window view gets centered on the search term (when the search term is further down the page, out of view from where you started).
However, when scrolling with the mouse, if one scrolls all the way to the bottom, you end up with a mostly-blank window, with only the last line showing at the top. It would probably be more useful if, when scrolling all the way down, the view were left in the same way as if a search had landed you at the last line of the doc (that is, with the last line somewhere near the middle of the window). Or possibly with the view centered, like what "Scroll to current line" does.
I'm worrying about this isn't possible. In Scintilla, there is only the option to enable or disable the "virtual last page" after the last real line of the document. So, when it is enabled, you can scroll one page below the last real line and you can center the last line in the view. Or you can disable this feature and so, scrolling always ends at the last line of the document. But then it is not possible to center one of the last lines in the view.
So, at the moment you have to decide for having the last page or not. You can enable/disable it with the new "scroll_stop_at_last_line" preference(hidden pref).
Regards, Enrico