Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/help/static-commands/find_till_char.md')
| -rw-r--r-- | runtime/help/static-commands/find_till_char.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/runtime/help/static-commands/find_till_char.md b/runtime/help/static-commands/find_till_char.md new file mode 100644 index 00000000..dc00bb84 --- /dev/null +++ b/runtime/help/static-commands/find_till_char.md @@ -0,0 +1,22 @@ +`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. │ +└───────────────────────────┘ └────────────────────────────┘ |