Author Topic: Go to word end instead begin of next word - Key bindings  (Read 3497 times)

ikk

  • Guest
Go to word end instead begin of next word - Key bindings
« 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.
« Last Edit: October 17, 2017, 06:54:35 pm by ikk »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Go to word end instead begin of next word - Key bindings
« Reply #1 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.
(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!]

Offline ikk_

  • Single posting newcomer
  • *
  • Posts: 6
    • github
Re: Go to word end instead begin of next word - Key bindings
« Reply #2 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
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.).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Go to word end instead begin of next word - Key bindings
« Reply #3 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?
(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!]

Offline ikk_

  • Single posting newcomer
  • *
  • Posts: 6
    • github
Re: Go to word end instead begin of next word - Key bindings
« Reply #4 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Go to word end instead begin of next word - Key bindings
« Reply #5 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?
(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!]

Offline ikk_

  • Single posting newcomer
  • *
  • Posts: 6
    • github
Re: Go to word end instead begin of next word - Key bindings
« Reply #6 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)?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Go to word end instead begin of next word - Key bindings
« Reply #7 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.
(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!]