News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to center editor around cursor?

Started by konjina, March 15, 2018, 01:02:13 AM

Previous topic - Next topic

konjina

Is this possible in CB?

Maybe as a keyboard shortcut?

oBFusCATed

You can use ctrl-up/down to move the view and not the cursor.
Also there is an option to prevent the cursor from going to the bottom or top, but I don't think there is a menu item or shortcut for it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

konjina

Quote from: oBFusCATed on March 15, 2018, 01:10:54 AM
You can use ctrl-up/down to move the view and not the cursor.

Not quite what I mean.

Quote from: oBFusCATed on March 15, 2018, 01:10:54 AM
Also there is an option to prevent the cursor from going to the bottom or top, but I don't think there is a menu item or shortcut for it.

Where is it? But it any case, that's not what I mean.

Something like this: https://raw.githubusercontent.com/kaiwood/vscode-center-editor-window/master/images/vscode-center-editor-window.gif

oBFusCATed

Not possible at the moment, but not something hard to do, so patches welcome.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

konjina

Quote from: oBFusCATed on March 15, 2018, 01:31:29 AM
Not possible at the moment, but not something hard to do, so patches welcome.

Oh, I'm afraid I'm not that good  :-X

In any case it would be really useful.