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