Definition of "word" in Scintilla

13 views
Skip to first unread message

TT

unread,
Mar 15, 2008, 3:49:22 AM3/15/08
to scintilla-interest
Hello there,

Thank you very much for this library, it's excellent! I'm a new user
of Notepad++.
One thing that is taking some time to get used to, however, is its
definition of "word", when you navigate or select word-by-word (e.g.
CTRL+RIGHTARROW, or CTRL+SHIFT+RIGHTARROW).

For instance, in virtually all Windows-based editors, if I position
the caret at the beginning of a word and then press CTRL+SHIFT
+RIGHTARROW, this selects the whole word _plus_ the trailing
punctuation + space (or leading, depending on how you see it I guess).
In Notepad++, instead, the selection stops right at the end of the
word.
This is presumably a Scintilla thing, and I also presume that this is
a Unix heritage (I think emacs also has a similar behaviour) but is
this configurable? If not, can it please be made configurable? (and
the Notepad++ project notified?)

Many thanks!

Neil Hodgson

unread,
Mar 15, 2008, 4:52:43 PM3/15/08
to scintilla...@googlegroups.com
TT:

> For instance, in virtually all Windows-based editors, if I position
> the caret at the beginning of a word and then press CTRL+SHIFT
> +RIGHTARROW, this selects the whole word _plus_ the trailing
> punctuation + space (or leading, depending on how you see it I guess).

That is not the behaviour of Visual Studio which appears to include
spaces but not punctuation in Ctrl+Shift+Right.

> In Notepad++, instead, the selection stops right at the end of the
> word.

Possibly Notepad++ is using SCI_WORDRIGHTENDEXTEND rather than
SCI_WORDRIGHTEXTEND.

Neil

Reply all
Reply to author
Forward
0 new messages