From f3100ddd486d6f39b0c97c9c492bb6020bf3caf1 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Wed, 31 Jul 2019 11:19:55 +0100 Subject: add undo support for box, visual, cut/paste --- gramscii.1 | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'gramscii.1') 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 . You can use, copy, modify, and redistribute -- cgit v1.2.3