Hi,
Often I'm typing along, and the cursor is at or near the bottom of the editor window, but I'd like to see a bit more what is on the lines below. It would be useful if there were a command available to scroll the window vertically, such that the line the cursor is on would be scrolled to the center of the window. The cursor would not change what line or column it's on, only the window would scroll by some amount to put the current line in the middle (unless the document is too short -- then it would just scroll up or down as far as possible).
Emacs uses Ctrl-L for this. If I were looking for a key to map this command to, I'd probably choose Shift-Ctrl-L (which fits nicely with Ctrl-L, IMO).
I see that I can repeatedly tap on Ctrl-Up/Down, and those keys are useful, but they're tedious when I just want the current line approximately centered on the screen.
---John
On Tue, 17 Jul 2007 11:16:55 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
Often I'm typing along, and the cursor is at or near the bottom of the editor window, but I'd like to see a bit more what is on the lines below. It would be useful if there were a command available to scroll
Sometimes it seems your mouse is broken or never worked ;-).
the window vertically, such that the line the cursor is on would be scrolled to the center of the window. The cursor would not change what line or column it's on, only the window would scroll by some amount to put the current line in the middle (unless the document is too short -- then it would just scroll up or down as far as possible).
Try Ctrl-Shift-L in SVN r1719 ;-). Since the code was already there it wasn't much work.
Regards, Enrico
On 7/17/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Tue, 17 Jul 2007 11:16:55 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
Often I'm typing along, and the cursor is at or near the bottom of the editor window, but I'd like to see a bit more what is on the lines below. It would be useful if there were a command available to scroll
Sometimes it seems your mouse is broken or never worked ;-).
Heh. :) Yes, I try not to use it too much while editing text.
the window vertically, such that the line the cursor is on would be scrolled to the center of the window. The cursor would not change what line or column it's on, only the window would scroll by some amount to put the current line in the middle (unless the document is too short -- then it would just scroll up or down as far as possible).
Try Ctrl-Shift-L in SVN r1719 ;-). Since the code was already there it wasn't much work.
Nice! Thanks. That was fast!
---John