jEdit Community - Resources for users of the jEdit Text Editor
ctrl-arrow cursor movement is too fine-grained
Submitted by andrewee on Saturday, 14 January, 2006 - 01:36
ctrl-leftarrow and ctrl-rightarrow cycle through the beginning and end of each word, which takes twice as many keystrokes to cycle through words compared to the standard Windows operation (in Notepad and Wordpad, ctrl-arrow cycles only through the beginning of each word).
In other words, jedit jumps the cursor to the next whitespace->nonwhitespace or nonwhitespace->whitespace boundary, whereas standard Windows operation jumps the cursor only to the next whitespace->nonwhitespace boundary and ignores all nonwhitespace->whitespace boundaries.
How do I make jedit obey the Windows standard, so that cycling through words isn't so tedious?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Reset global key options
by josephhill on Sat, 14/01/2006 - 05:59
Under Utilities -- Global options -- Shortcuts, select "Go to previous word (eat white space)" and set it to C-LEFT, and it will reassign that key combination from "Go to previous word [without eating white space]." Set C-RIGHT to "Go to next word (eat white space)."

Joe
 
Re: Reset global key options
by andrewee on Sat, 14/01/2006 - 16:24
> Under Utilities -- Global options -- Shortcuts, select "Go to previous word (eat white space)" and set it to C-LEFT, and it will reassign that key combination from "Go to previous word [without eating white space]." Set C-RIGHT to "Go to next word (eat white space)."

Thanks; that's what I needed.
Also discovered that I have to manually change "select next word" and "select previous word" as well. It seems like those latter two commands out to inherit the whitespace-eating settings from the former two.
 
Re: Reset global key options
by andrewee on Sun, 15/01/2006 - 00:46
Alas, it still isn't quite how I need it. ctrl-right (and ctrl-shift-right) now always jump to the beginning of the next word, as I want, but ctrl-left and ctrl-shift-left are wrong; they jump to the _end_ of the previous word, rather than to the beginning. (I'm trying to get jedit's ctrl-right and ctrl-left to work exactly like the "w" and "b" commands in vi, but ctrl-left is refusing to cooperate.) This is causing me no end of annoyance while I'm trying to rapidly rearrange sections of text, because I keep accidentally cutting and pasting whitespace in the wrong places, and I have to then manually go and delete superfluous spaces and insert missing spaces.
 
right
by josephhill on Sat, 14/01/2006 - 22:18
Yes, I forgot to mention that part.

Joe
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300