Code::Blocks Forums

User forums => Help => Topic started by: ikk on October 17, 2017, 06:48:04 pm

Title: Go to word end instead begin of next word - Key bindings
Post by: ikk on October 17, 2017, 06:48:04 pm
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.
Title: Re: Go to word end instead begin of next word - Key bindings
Post by: oBFusCATed on October 17, 2017, 08:36:25 pm
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.
Title: Re: Go to word end instead begin of next word - Key bindings
Post by: ikk_ on October 17, 2017, 09:35:19 pm
No, not nighty builds. Its 16.01 official.
Windows version is  from downloads from SF on the main page (http://codeblocks.org/downloads/26)
And linux version is: "codeblocks - 16.01~ubuntu12.04.1" - links from the main page then from launchpad website (https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable/+packages).
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.).
Title: Re: Go to word end instead begin of next word - Key bindings
Post by: oBFusCATed on October 18, 2017, 01:22:56 am
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?
Title: Re: Go to word end instead begin of next word - Key bindings
Post by: ikk_ on October 18, 2017, 11:13:01 am
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.
Title: Re: Go to word end instead begin of next word - Key bindings
Post by: oBFusCATed on October 18, 2017, 09:10:49 pm
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?
Title: Re: Go to word end instead begin of next word - Key bindings
Post by: ikk_ on October 19, 2017, 02:44:17 pm
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)?
Title: Re: Go to word end instead begin of next word - Key bindings
Post by: oBFusCATed on October 19, 2017, 04:55:28 pm
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.