summaryrefslogtreecommitdiff
path: root/gramscii.1
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-07-31 11:19:55 +0100
committerKatolaZ <katolaz@freaknet.org>2019-07-31 11:19:55 +0100
commitf3100ddd486d6f39b0c97c9c492bb6020bf3caf1 (patch)
tree729407153bc35d950ef5a46045f5d6a9c71bdcf2 /gramscii.1
parent526ce3a130732d4a2374a6e36a689d9e0cf5cc34 (diff)
add undo support for box, visual, cut/paste
Diffstat (limited to 'gramscii.1')
-rw-r--r--gramscii.124
1 files changed, 22 insertions, 2 deletions
diff --git a/gramscii.1 b/gramscii.1
index 95b2719..aa88386 100644
--- a/gramscii.1
+++ b/gramscii.1
@@ -63,6 +63,26 @@ buffer contains the rectangle yanked/cut in
.B visual
mode.
.TP 5m
+.BI u
+Undo the last change. gramscii supports an undo history of indefinite
+length. The command
+.BI u
+gets the last change from the history, and moves the history pointer
+back by one change. See the related command
+.BI U
+below.
+.TP 5m
+.BI U
+Redo, i.e., cancel a previous
+.BI u
+command. gramscii supports an undo history of indefinite length. The
+command
+.BI U
+moves to the following change, if possible. For instance, the sequence
+.BI uuU
+will go back two changes, and then forward one, effectively resetting
+the state of the screen to what it was before the last change occurred.
+.TP 5m
.BI q
Quit gramscii, and prompt for a filename if the current screen contains
unsaved changes.
@@ -516,8 +536,8 @@ support scrolling and "virtual" screens of any (reasonable) size.
.PP
gramscii currently does
.B not
-provide an "undo" command. This requires a restructuring of buffer
-management, and will most probably be implemented in a future release.
+support "undo" commands for arrow, text, and erase mode. This will be
+added soon.
.SH AUTHORS
gramscii is written and maintained by Vincenzo "KatolaZ" Nicosia
<katolaz@freaknet.org>. You can use, copy, modify, and redistribute