Instead of always stopping at the fronts of words, you
can set these action routines to stop at at line ends,
the ends of runs of spaces, etc. by setting appropriate
translations. This patch also allows "jump to end of
selection": if you have an active selection, you can get
your left/right keys to move to the end of it before
deselecting it, rather than just moving one character
position.
* Added forward_same/backward_same action
routines, to bind to ctrl-right/left for word skipping
* Added forward/backward_character skipselect
argument, to move to either end of an active selection
before clearing it
* Added forward_same/backward_same skipselect,
skipblanks arguments, allowing fine control over where
the cursor ends up
Example translations
NEdit*text.translations: #override \
Shift Ctrl<KeyPress>osfLeft: backward_same("extend")
\n\
Ctrl<KeyPress>osfLeft: backward_same
("skipselect","skipblanks")\n\
Shift Ctrl<KeyPress>osfRight: forward_same
("extend","skipblanks")\n\
Ctrl<KeyPress>osfRight: forward_same
("skipselect","skipblanks")\n\
~Alt ~Shift ~Ctrl ~Meta<KeyPress>osfRight:
forward_character(skipselect)\n\
~Alt ~Shift ~Ctrl ~Meta<KeyPress>osfLeft:
backward_character(skipselect)\n\
...