Add documentation

* `move_next_word_start`
* `move_prev_word_start`
* `move_next_word_end`
pull/997/head
Omnikar 3 years ago
parent fc2ec0fc2c
commit d48c555c3d
No known key found for this signature in database
GPG Key ID: 7DE6694CDA7885ED

@ -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…
Cancel
Save