summaryrefslogtreecommitdiff
path: root/gramscii.1
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-07-30 12:15:54 +0100
committerKatolaZ <katolaz@freaknet.org>2019-07-30 12:15:54 +0100
commiteebc645dee0d15871d6cc46f156d424cd916b191 (patch)
tree82bb51d04d05a3cf1b4937e2cefb70cc282e9993 /gramscii.1
parenta99759398841d86928c7ad4d8248f907765cbeb2 (diff)
yank buffer and initial copy/cut/paste support
Diffstat (limited to 'gramscii.1')
-rw-r--r--gramscii.120
1 files changed, 18 insertions, 2 deletions
diff --git a/gramscii.1 b/gramscii.1
index 10a1943..95b2719 100644
--- a/gramscii.1
+++ b/gramscii.1
@@ -57,6 +57,12 @@ Crop chart to the largest non-blank region. The first line and the first
column of the cropped chart will contain the first non-blank line and
the first non-blank column of the original chart, respectively.
.TP 5m
+.BI p
+Paste the content of the yank buffer at the cursor position. The yank
+buffer contains the rectangle yanked/cut in
+.B visual
+mode.
+.TP 5m
.BI q
Quit gramscii, and prompt for a filename if the current screen contains
unsaved changes.
@@ -340,9 +346,19 @@ commands to highlight a rectangle. Then, you can use one of the
following command on the highlighted region:
.RS
.TP 5m
+.BI y
+Yank (copy) the highlighted rectangle to the yank buffer. The content of
+the yank buffer can be retrieved by using the
+.B p
+command while in
+.B move
+mode. The yank buffer is overwritten by subsequent yank/cut commands.
+.TP 5m
.BI x
-Erase region. All the characters in the region are set to the default
-background character (space).
+Cut region. The content of the highlighted rectangle will be put in the
+yank buffer and all the characters in the region are set to the default
+background character (space). The yank buffer is overwritten by
+subsequent yank/cut commands.
.TP 5m
.BI f
Fill region. gramscii will wait for a character on input and then will