Clarify which parts of Kakoune the extra_word_chars option affects.
Also, document the "empty option implies underscore" quirk.
This commit is contained in:
parent
d758bbf09b
commit
b228232de7
|
@ -95,8 +95,9 @@ it when pasting text.
|
||||||
|
|
||||||
== Movement
|
== Movement
|
||||||
|
|
||||||
'word' is a sequence of alphanumeric characters or underscore, and 'WORD'
|
'word' is a sequence of alphanumeric characters, or those in the `extra_word_chars`
|
||||||
is a sequence of non whitespace characters. Generally, a movement on its own
|
option (see <<options#builtin-options,`:doc options builtin-options`>>).
|
||||||
|
'WORD' is a sequence of non whitespace characters. Generally, a movement on its own
|
||||||
will move each selection to cover the text moved over, while holding down
|
will move each selection to cover the text moved over, while holding down
|
||||||
the Shift modifier and moving will extend each selection instead.
|
the Shift modifier and moving will extend each selection instead.
|
||||||
|
|
||||||
|
|
|
@ -273,7 +273,11 @@ are exclusively available to built-in options.
|
||||||
|
|
||||||
*extra_word_chars* `codepoint-list`::
|
*extra_word_chars* `codepoint-list`::
|
||||||
a list of all additional codepoints that should be considered
|
a list of all additional codepoints that should be considered
|
||||||
as word character. This must be set on the buffer, not the window,
|
part of a word, for the purposes of the `w`, `b`, and `e` commands
|
||||||
|
(See <<keys#movement,`:doc keys movement`>>).
|
||||||
|
If this option is empty, Kakoune pretends it contains an
|
||||||
|
underscore, otherwise the value is used as-is.
|
||||||
|
This must be set on the buffer, not the window,
|
||||||
for word completion to offer words containing these codepoints.
|
for word completion to offer words containing these codepoints.
|
||||||
|
|
||||||
*matching_pairs* `codepoint-list`::
|
*matching_pairs* `codepoint-list`::
|
||||||
|
|
|
@ -56,10 +56,11 @@ characters, the `-` character, and the `+` character.
|
||||||
|
|
||||||
Supported character class escapes are:
|
Supported character class escapes are:
|
||||||
|
|
||||||
* `\d` which matches all digits.
|
* `\d` which matches digits 0-9.
|
||||||
* `\w` which matches all word characters.
|
* `\w` which matches word characters A-Z, a-z, 0-9 and underscore
|
||||||
* `\s` which matches all whitespace characters.
|
(ignoring the `extra_word_chars` option).
|
||||||
* `\h` which matches all horizontal whitespace characters.
|
* `\s` which matches all Unicode whitespace characters.
|
||||||
|
* `\h` which matches whitespace except Vertical Tab and line-breaks.
|
||||||
|
|
||||||
Using an upper case letter instead of a lower case one will negate
|
Using an upper case letter instead of a lower case one will negate
|
||||||
the character class. For example, `\D` will match every non-digit
|
the character class. For example, `\D` will match every non-digit
|
||||||
|
|
Loading…
Reference in New Issue
Block a user