Currently, with line-wrap disabled, when the typed characters reach the right-hand-side margin of the window, the window view jumps / scrolls to a position a bit more than half the width of the window.
(What character was previously seen at about half window position in the line, now gets moved left to begin of window view).
That is too much of a jump; would it be possible to make it smaller, ideally the size of the set indentation, or just the (average) width of a character? Maybe as an option for the user to set (though I don't see how it would harm others).

Notepad++, for example, sets the auto-scroll to 4 char-widths (at least when using monospaced); which is better, although no option to change that.

Looking at https://www.scintilla.org/ScintillaDoc.html#ScrollingAndAutomaticScrolling , it seems it would be possible?... Particularly SCI_GETXOFFSET and/or SCI_LINESCROLL(int columns, int lines).

I will illustrate why this is desirable; bellow | represents window margins
Say you type one line, press "enter", then type a second after an indentation:

|Aaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaa |
|        Caaaaaaaaaaaaadaaaaaaaaaaaaaaaaaaaaa|

Now when I type one more character... whoa Nelly, too big jump!
I see this (too bad font here is not monospaced, at least in code blocks)

|baaaaaaaaaaaaaaaaaaaa                        |
|daaaaaaaaaaaaaaaaaaaaa                       |

If it were to jump by at most an indentation size, you would see this:

|aaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaa      |
|Caaaaaaaaaaaaadaaaaaaaaaaaaaaaaaaaaa         |

which is better, as you still see the whole line you are editing.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.