From ab35f6618bc8beb4543cbc7c62332f82d7d5699c Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 22 Mar 2025 15:19:53 +0300 Subject: added `P` command as a reverse form of `W` * All the movement commands have shortcuts for their negative forms: `R` instead of `-C`, `B` instead of `-L`. Therefore there was always the need for a `-W` shortcut as well. * `P` is a good choice because it is a file IO command in TECO-11, that does not make sense supporting. In Video TECO it toggles between display windows (ie. split screens) and I do not plan to support multiple windows in SciTECO. * Added to the cheat sheet. --- doc/cheat-sheet.mm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/cheat-sheet.mm b/doc/cheat-sheet.mm index ab404e3..60104ff 100644 --- a/doc/cheat-sheet.mm +++ b/doc/cheat-sheet.mm @@ -419,12 +419,12 @@ Read \fIfile\fP into Q-Register \fIq\fP. . TD . CI C . TD -Move one character forward. +Move to next character. . TRX . TD . CI "" n C . TD -Move \fIn\fP characters forward. +Move \fIn\fP characters forwards. . TRX . TD . CI R @@ -439,17 +439,24 @@ Move \fIn\fP characters backwards (reverse). . TD . CI W . TD -Move to the beginning of next word. +Move to next word. +. TRX +. TD +. CI P +. TD +Move to previous word. . TRX . TD . CI L . TD Move to the beginning of next line. +.ig END . TRX . TD . CI "" n L . TD Move forward \fIn\fP lines. +.END . TRX . TD . CI 0L -- cgit v1.2.3