This forum has been archived. All content is frozen. Please use KDE Discuss instead.

skipping words with Ctrl-arrow

Tags: None
(comma "," separated)
pances
Registered Member
Posts
5
Karma
0

skipping words with Ctrl-arrow

Thu Apr 02, 2015 8:47 pm
Not sure which forum to post this under... but here's a general annoyance that I've been meaning to ask about now for a while. I come from a Win environment, where skipping words with the use of the keyboard is done by Ctrl-LeftArrow and Ctrl-RightArrow. Linux does the same but slightly different. Ctrl-Right seems to behave the same in both Linux and Win ie - it jumps right to the beginning of the previous word.

But Ctrl-LeftArrow jumps to the beginning of the next word in WIn, whereas it jumps to the end of the next word in Linux. This is very annoying. Can anyone tell me if there's a way to make Ctrl-LeftArrow jump to the beginning of the next word?

Thanks.

Linux Newbie.

Pance.
luebking
Karma
0
Leaving aside that you probably twisted left and right (or we have a different opinion of "previous" and "next" - do you live in a RTL culture? That might be important.):

That's no "Windows" / "Linux" thing - the input handling is controlled by every application itself, though of course there're toolkits (Qt, GTK+) which provide such features.

At least in a LTR setup, Qt4 & Qt5 default text editor widgets as well as the Kate widget (KDE advanced text editor, "kwrite") always jump to the beginning of a word for either Ctrl modified arrow key, but:
gtk+ text input behaves as you described - and it seems so does (Qt)WebKit (and firefox) ie. at least all Browsers except for Konqueror on khtml =)

=> Actually, KDE is the only part of "Linux" (please don't post this at lkml.org, you'll get smashed ;-) that behaves as you expect. I doubt that browsers allow to control this, let alone gtk :-(
pances
Registered Member
Posts
5
Karma
0

Re: skipping words with Ctrl-arrow

Fri Apr 03, 2015 1:56 am
I tested it with Kate, and yes, you are correct. So the problem seems to be Geany (and my browser FF).

Thanks.

Pance
User avatar
cpepitop
Registered Member
Posts
1
Karma
0

Re: skipping words with Ctrl-arrow

Sat Mar 03, 2018 6:14 am
Hello

I'm having the same problem. I cannot skip words (i can with Ctrl+left or ctrl+right in most console emulators, even here in an unrelated application firefox)

What i need to do is skip words with ctrl+left to go to the beginning of a word, or ctrl+right to go to the end of that word.
In most terminals, as i said, i can do this without problems.

Is there any way i can configure this?

Regards,

cpepitop
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: skipping words with Ctrl-arrow

Tue Mar 06, 2018 8:28 pm
So, what is the desired behavior and In what application(s) do you not see the desired behavior?

as luebking mentioned, in GTK-based applications the behavior is generally for ctrl+left to jump to the beginning of the word and ctrl+right to jump to the end of the word; while for Qt and Windows based applications the behavior is generally for both combos to jump to beginnings of words.
Terminal emulators are another story as the behavior on ctrl+left/right is defined by whatever is currently running (e.g. bash) rather than the emulator; so you should see the same behavior between terminal emulators running the same shell. The behavior for bash (and most other command-line tools that provide input prompts) is provided by readline and defined in your ~/.inputrc file.


airdrik, proud to be a member of KDE forums since 2008-Dec.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]