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.2 KiB
Plaintext
23 lines
1.2 KiB
Plaintext
`find_till_char`
|
|
|
|
Waits for another keypress, then moves and
|
|
selects forward, stopping before the first
|
|
instance of the pressed key. Can take
|
|
a count, which will cause it to stop
|
|
before the nth instance of the keypress,
|
|
rather than the first.
|
|
|
|
--- Examples ---
|
|
|
|
The cursor moves forward, stopping before 'c'
|
|
and selecting everything along the way.
|
|
┌───────────────────────┐ c ┌───────────────────────┐
|
|
│ This i[s] a sentence. │ --> │ This i(s a senten]ce. │
|
|
└───────────────────────┘ └───────────────────────┘
|
|
|
|
The cursor is not stopped by line breaks.
|
|
┌───────────────────────────┐ ┌────────────────────────────┐
|
|
│ This is the fi[r]st line. │ Q │ This is the fi(rst line. │
|
|
│ This second line has a Q. │ --> │ This second line has a ]Q. │
|
|
└───────────────────────────┘ └────────────────────────────┘
|