From eebc645dee0d15871d6cc46f156d424cd916b191 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Tue, 30 Jul 2019 12:15:54 +0100 Subject: yank buffer and initial copy/cut/paste support --- gramscii.1 | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'gramscii.1') 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 -- cgit v1.2.3