From aee10cf741b15a07ea4175292058483f4fba0f37 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Wed, 29 Dec 2021 20:20:45 -0500 Subject: [PATCH] Add documentation * `replace` * `switch_case` * `switch_to_uppercase` * `switch_to_lowercase` --- runtime/help/static-commands/replace.txt | 21 +++++++++++++++++++ runtime/help/static-commands/switch_case.txt | 13 ++++++++++++ .../static-commands/switch_to_lowercase.txt | 9 ++++++++ .../static-commands/switch_to_uppercase.txt | 9 ++++++++ 4 files changed, 52 insertions(+) create mode 100644 runtime/help/static-commands/replace.txt create mode 100644 runtime/help/static-commands/switch_case.txt create mode 100644 runtime/help/static-commands/switch_to_lowercase.txt create mode 100644 runtime/help/static-commands/switch_to_uppercase.txt diff --git a/runtime/help/static-commands/replace.txt b/runtime/help/static-commands/replace.txt new file mode 100644 index 000000000..ebe1a41fd --- /dev/null +++ b/runtime/help/static-commands/replace.txt @@ -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. │ +└──────────────────────────────────┘ └──────────────────────────────────┘ diff --git a/runtime/help/static-commands/switch_case.txt b/runtime/help/static-commands/switch_case.txt new file mode 100644 index 000000000..84ca73c66 --- /dev/null +++ b/runtime/help/static-commands/switch_case.txt @@ -0,0 +1,13 @@ +`switch_case` + +Toggles the case of all selected letters. + +--- Examples --- + +┌───────────────────────┐ ┌───────────────────────┐ +│ [t]his is a sentence. │ --> │ [T]his is a sentence. │ +└───────────────────────┘ └───────────────────────┘ + +┌───────────────────────┐ ┌───────────────────────┐ +│ (tHIS] is a sentence. │ --> │ (This] is a sentence. │ +└───────────────────────┘ └───────────────────────┘ diff --git a/runtime/help/static-commands/switch_to_lowercase.txt b/runtime/help/static-commands/switch_to_lowercase.txt new file mode 100644 index 000000000..055692814 --- /dev/null +++ b/runtime/help/static-commands/switch_to_lowercase.txt @@ -0,0 +1,9 @@ +`switch_to_lowercase` + +Changes all selected letters to lowercase. + +--- Examples --- + +┌──────────────────────────────────┐ ┌──────────────────────────────────┐ +│ This (wOrD] should be lowercase. │ --> │ This (word] should be lowercase. │ +└──────────────────────────────────┘ └──────────────────────────────────┘ diff --git a/runtime/help/static-commands/switch_to_uppercase.txt b/runtime/help/static-commands/switch_to_uppercase.txt new file mode 100644 index 000000000..e04673b74 --- /dev/null +++ b/runtime/help/static-commands/switch_to_uppercase.txt @@ -0,0 +1,9 @@ +`switch_to_uppercase` + +Changes all selected letters to uppercase. + +--- Examples --- + +┌──────────────────────────────────┐ ┌──────────────────────────────────┐ +│ This (wOrD] should be uppercase. │ --> │ This (WORD] should be uppercase. │ +└──────────────────────────────────┘ └──────────────────────────────────┘