News:

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

Main Menu

Go to word end instead begin of next word - Key bindings

Started by ikk, October 17, 2017, 06:48:04 PM

Previous topic - Next topic

ikk

Hi.
About Ctrl+Righ and Ctrl+Left keyboard commands for caret position in Text Editor.
They work slightly different in Linux and in Windows C::B versions (as of v16.01).
In Windows Ctrl+Right moves caret to current word end before going to the next word.

Is it possible to create keyboard shortcut, in Linux version, to work like in Windows version?

I don't mind if it would be done through editing config files, doesn't have to be in options or in menu.
I looked at source code and noticed Scintilla library. Is it possible to change it's configuration for the current C::B version.

oBFusCATed

Have you tried a recent night build?
I'm not sure where this difference comes from, because we use the same component for the editor on windows and on linux.
(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!]

ikk_

No, not nighty builds. Its 16.01 official.
Windows version is  from downloads from SF on the main page
And linux version is: "codeblocks - 16.01~ubuntu12.04.1" - links from the main page then from launchpad website.
In Linux version Ctrl+Right worked like that on old C::B v13.12 too.

(I'm posting from new account because of email reset issue.).

oBFusCATed

Quote from: ikk_ on October 17, 2017, 09:35:19 PM
In Linux version Ctrl+Right worked like that on old C::B v13.12 too.
What do you mean by this?
That 13.12 moved the cursor to the end of the word on ctrl-right?
(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!]

ikk_

Quote from: oBFusCATed on October 18, 2017, 01:22:56 AM
Quote from: ikk_ on October 17, 2017, 09:35:19 PM
In Linux version Ctrl+Right worked like that on old C::B v13.12 too.
What do you mean by this?
That 13.12 moved the cursor to the end of the word on ctrl-right?
I'm sorry I was no clear about it.  i meant that it was consistent on both C::B for Linux, it worked in the same way. That is, Ctrl+Right is moving caret to the next word begin.

oBFusCATed

So the current behaviour on linux is the correct one and the 16.01 on windows is broken?
Can you test the latest night build and tell us if this is ok on windows with 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!]

ikk_

Actually, i made a mistake, both Windows and Linux versions work the same way regarding that ctrl+right functionality.
I'm sorry,  it must have been some other text editor that caused my confusion.
I checked new C::B windows build as well (20171003 rev11182 win32).

If anything, I would like to know if there is possibility to make C::B text editor behave in that other way (ctrl+right: go to word end first, not to next word)?

oBFusCATed

Don't know. You can dig in the scite's documentation. If it is possible to do it there it should be possible to do it in C::B with simple configuration option.
It is not simple configuration option then we'll need to add code to do this explicitly. I don't know how hard this is.
(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!]