mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.3 KiB
Plaintext
23 lines
1.3 KiB
Plaintext
3 years ago
|
`find_prev_char`
|
||
|
|
||
|
Waits for another keypress, then moves and
|
||
|
selects backward, stopping at the first
|
||
|
instance of the pressed key. Can take
|
||
|
a count, which will cause it to stop
|
||
|
at the nth instance of the keypress,
|
||
|
rather than the first.
|
||
|
|
||
|
--- Examples ---
|
||
|
|
||
|
The cursor moves backward, stopping at 'h'
|
||
|
and selecting everything along the way.
|
||
|
┌───────────────────────┐ h ┌───────────────────────┐
|
||
|
│ This is a sent[e]nce. │ --> │ T[his is a sente)nce. │
|
||
|
└───────────────────────┘ └───────────────────────┘
|
||
|
|
||
|
The cursor is not stopped by line breaks.
|
||
|
┌──────────────────────────────────┐ ┌───────────────────────────────────┐
|
||
|
│ There is a Q in this first line. │ Q │ There is a [Q in this first line. │
|
||
|
│ This is the se[c]ond line. │ --> │ This is the sec)ond line. │
|
||
|
└──────────────────────────────────┘ └───────────────────────────────────┘
|