summaryrefslogtreecommitdiff
path: root/gramscii.1
diff options
context:
space:
mode:
Diffstat (limited to 'gramscii.1')
-rw-r--r--gramscii.148
1 files changed, 38 insertions, 10 deletions
diff --git a/gramscii.1 b/gramscii.1
index 3370c24..b130530 100644
--- a/gramscii.1
+++ b/gramscii.1
@@ -86,6 +86,17 @@ command).
Load (edit) an existing file from disk, discarding any change to the
current screen.
.TP 5m
+.BI M a
+Mark (label) the current cursor position as 'a'. The label 'a' must be
+one of the 26 ASCII alphabetic characters. The cursor can be moved to a
+previously marked position using the global positioning command
+.B g
+(see below). Position marks are case-insensitive, meaning that both
+.I 'c'
+and
+.I 'C'
+indicate the same mark.
+.TP 5m
.BI N
Start a new empty screen. If the current screen has been modified since
the last
@@ -178,11 +189,13 @@ units at a time (defaults to 5, change LONG_STEP in config.h as you
wish).
.TP 5m
.BI g
-Initiate a global positioning command (go). These are two-letter
-commands starting with a
+Initiate a global positioning command (go). These are two- or
+three-letter commands starting with a
.BI g
-and followed by a direction command or by a character that indicates a
-global position, namely:
+and followed by a direction command, or by a character that indicates a
+global position, or by a valid position mark previously defined with
+.B M
+and preceded by a single quote. In particular:
.RS
.TP 5m
.BI h
@@ -205,9 +218,24 @@ move the cursor to the bottom-right corner of the screen
.TP 5m
.BI m
move the cursor to the middle of the screen.
+.TP 5m
+.BI 'a
+(single-quote followed by a character) move the cursor to the position
+previously marked (labelled) with character
+.BI 'a'
+by the command
+.B M
+(mark). The character 'a' must be one of the 26 ASCII alphabetic
+characters. Notice that position marks are case-insensitive, so the two
+commands:
+.B g'b
+and
+.B g'B
+move the cursor to the position mark associated to the letter 'b', if it
+exists.
.PP
-For instance, if you want to move the cursor to the first row of the
-current column, you would use the two-letter command
+If you want to move the cursor to the first row of the current
+column, you could use the two-letter command
.B gk
(which can be read as "go-up"). Similarly, the command
.B gh
@@ -227,13 +255,13 @@ is equivalent to
).
.PP
Global positioning commands are available in
-.B box, arrow, visual,
+.B box, arrow, visual, parallelogram,
and
.B erase
mode. Notice that
-.B gg, gG,
-and
-.B gm,
+.B gg, gG, gm
+and moves to position marks like
+.B g'b,
are not available in
.B arrow
mode.