mirror of https://github.com/helix-editor/helix
Add documentation
* `move_next_word_start` * `move_prev_word_start` * `move_next_word_end`pull/997/head
parent
fc2ec0fc2c
commit
d48c555c3d
@ -0,0 +1,15 @@
|
|||||||
|
`move_next_word_end`
|
||||||
|
|
||||||
|
Moves and selects forward, stopping at
|
||||||
|
the last character of the current word.
|
||||||
|
|
||||||
|
--- Examples ---
|
||||||
|
|
||||||
|
The cursor moves forward, stopping at the end of 'These'
|
||||||
|
and selecting everything along the way.
|
||||||
|
┌────────────────────┐ ┌────────────────────┐
|
||||||
|
│ [T]hese are words. │ --> │ (These] are words. │
|
||||||
|
└────────────────────┘ └────────────────────┘
|
||||||
|
┌────────────────────┐ ┌────────────────────┐
|
||||||
|
│ Th[e]se are words. │ --> │ Th(ese] are words. │
|
||||||
|
└────────────────────┘ └────────────────────┘
|
@ -0,0 +1,15 @@
|
|||||||
|
`move_next_word_start`
|
||||||
|
|
||||||
|
Moves and selects forward, stopping before
|
||||||
|
the first character of the next word.
|
||||||
|
|
||||||
|
--- Examples ---
|
||||||
|
|
||||||
|
The cursor moves forward, stopping before the start of 'are'
|
||||||
|
and selecting everything along the way.
|
||||||
|
┌────────────────────┐ ┌────────────────────┐
|
||||||
|
│ [T]hese are words. │ --> │ (These ]are words. │
|
||||||
|
└────────────────────┘ └────────────────────┘
|
||||||
|
┌────────────────────┐ ┌────────────────────┐
|
||||||
|
│ Th[e]se are words. │ --> │ Th(ese ]are words. │
|
||||||
|
└────────────────────┘ └────────────────────┘
|
@ -0,0 +1,18 @@
|
|||||||
|
`move_prev_word_start`
|
||||||
|
|
||||||
|
Moves and selects backward, stopping at
|
||||||
|
the first character of the previous word.
|
||||||
|
|
||||||
|
--- Examples ---
|
||||||
|
|
||||||
|
The cursor moves backwards, stopping at the start of 'These'
|
||||||
|
and selecting everything along the way.
|
||||||
|
┌────────────────────┐ ┌────────────────────┐
|
||||||
|
│ These[ ]are words. │ --> │ [These )are words. │
|
||||||
|
└────────────────────┘ └────────────────────┘
|
||||||
|
┌────────────────────┐ ┌────────────────────┐
|
||||||
|
│ These [a]re words. │ --> │ [These )are words. │
|
||||||
|
└────────────────────┘ └────────────────────┘
|
||||||
|
┌────────────────────┐ ┌────────────────────┐
|
||||||
|
│ Th[e]se are words. │ --> │ [The)se are words. │
|
||||||
|
└────────────────────┘ └────────────────────┘
|
Loading…
Reference in New Issue