Is this intended behaviour? I thought using Alt + Arrow keys (up, down) should emulate mouse wheel behaviour, i.e. NOT move the text cursor, but only the visible region of the text file.
This is clearly uncomfortable if we have a text selection greater than the visible region, because in that case, using Alt + Arrow-keys deselects the text once the cursor is re-positioned due to visible region end.
gif attached
I thought using Alt + Arrow keys (up, down) should emulate mouse wheel behaviour
Where did you get that impression? I can't find anywhere that exactly defines what that key combination does, but nothing I can find says its a mouse replacement.
All the [Geany docs](https://www.geany.org/manual/current/index.html#editor-keybindings) say is "scroll view" with no mention of what the cursor does or does not do, unlike the line above for `ctrl_shift+l`. The Scintilla docs are similarly silent (which is probably why Geany ones are, since Geany simply calls Scintilla).
Certainly the oldest version I have (1.36) works like that, and as far as I can recall it always did, but I never paid much attention.
This is also the way Scite behaves (except its key combo is different).
Certainly it is strange, exactly what it is for I don't know.
Is this intended behaviour?
You would have to ask that of Scintilla, perhaps there is some olden times use.
Although @elextr is right that there's nothing actually stating what it really does, it doesn't feel very intuitive nor useful to me as is (I either want the caret to move, or I don't, I rarely don't care).
So it's not technically a bug as it behaves just the way the code intends, but it feels counterintuitive to me, and worth changing. We could probably achieve the OP's expectations fairly easily using `SCI_LINESCROLL(0, [-]1)` instead.
This said, I don't really use the feature (or I would have noticed I guess), so I might not be the best judge of current behavior.
This copies the behaviour of Microsoft Visual Studio.
In `include/Scintilla.iface`: ~~~ # Scroll the document down, keeping the caret visible. fun void LineScrollDown=2342(,) ~~~
@nyamatongwe thanks, so its intentional to match Visual Studio. Fair enough.
Geany then needs to decide if it wants to match Visual Studio, a windows only program, or Vscode, Eclipse and other portable programs by doing as @b4n suggested. PR welcome ;-P
github-comments@lists.geany.org