Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/help/static-commands/replace.md')
-rw-r--r--runtime/help/static-commands/replace.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/help/static-commands/replace.md b/runtime/help/static-commands/replace.md
new file mode 100644
index 00000000..ebe1a41f
--- /dev/null
+++ b/runtime/help/static-commands/replace.md
@@ -0,0 +1,21 @@
+`replace`
+
+Waits for another keypress, then replaces all
+selected characters with the pressed key.
+
+--- Examples ---
+
+'a' is replaced with 'e'.
+┌──────────────────────────┐ e ┌──────────────────────────┐
+│ Do this, th[a]n do that. │ --> │ Do this, th[e]n do that. │
+└──────────────────────────┘ └──────────────────────────┘
+
+All instances of ',' are replaced with '.'.
+┌──────────────────────────────┐ . ┌──────────────────────────────┐
+│ This sentence continues(,,,] │ --> │ This sentence continues(...] │
+└──────────────────────────────┘ └──────────────────────────────┘
+
+All instances of 'a' are replaced with 'e'.
+┌──────────────────────────────────┐ e ┌──────────────────────────────────┐
+│ 1, th[a]n 2, th[a]n 3, th[a]n 4. │ --> │ 1, th[e]n 2, th[e]n 3, th[e]n 4. │
+└──────────────────────────────────┘ └──────────────────────────────────┘