aboutsummaryrefslogtreecommitdiffstats
path: root/pw.1
diff options
context:
space:
mode:
Diffstat (limited to 'pw.1')
-rw-r--r--pw.157
1 files changed, 45 insertions, 12 deletions
diff --git a/pw.1 b/pw.1
index edd613d..6729e47 100644
--- a/pw.1
+++ b/pw.1
@@ -301,18 +301,9 @@ Enter colon command mode. In colon command mode, the status line clears
and a colon prompt appears there. An extended command can be entered.
Pressing
.I Enter
-in colon mode dispatches the command. Simple editing is available:
-backspace,
-.B Ctrl-W
-word erase and
-.B Ctrl-U
-line erase. If backspace is used in an empty colon line, colon mode
-terminates without executing a command.
-.B Ctrl-C
-and
-.B Esc
-also terminate colon mode without executing a command. Colon commands
-are documented in the COLON COMMANDS section below.
+in colon mode dispatches the command. Colon commands are documented in the
+COLON COMMANDS section below. Simple editing is available, described in the
+EDITING COMMANDS section below.
.IP "[\fIpos\fP]\fB/[!]\fP\fIpattern\fP, [\fIpos\fP]\fB?[!]\fP\fIpattern\fP"
Set a trigger if a non-empty
@@ -747,6 +738,48 @@ as the argument to the
option, the grep stack, trigger state and display parameters will be stored to
exactly the same configuration that existed at the time the state was saved.
+.SH EDITING COMMANDS
+
+The colon command mode and trigger entry modes support rudimentary
+editing. The commands are as follows:
+
+.IP "\fBCtrl-B\fP, \fILeft Arrow\fP"
+Move the cursor one character to the left.
+
+.IP "\fBCtrl-F\fP, \fIRight Arrow\fP"
+Move the cursor one character to the right.
+
+.IP "\fBCtrl-A\fP"
+Move the cursor to the beginning of the line.
+
+.IP "\fBCtrl-E\fP"
+Move the cursor to the end of the line.
+
+.IP \fBBackspace\fP
+Erase the character to the left of the cursor. The ASCII BS and DEL
+characters are both recognized as backspace (an amazing trick not
+yet mastered by Unix TTY's). If backspace is used in an empty line,
+the respective mode terminates without executing a command or setting
+a trigger.
+
+.IP \fBCtrl-D\fP
+Delete the character under the block cursor, or to the right of
+a line or I-beam cursor.
+
+.IP \fBCtrl-W\fP
+Delete the word to the left of the cursor, including any trailing
+whitespace between the word and the cursor.
+
+.IP \fBCtrl-U\fP
+Erase the all the characters to the left of the cursor.
+
+.IP \fBCtrl-K\fP
+Erase the the character under the block cursor, or to the right
+of a line or I-beam cursor, and all characters which follow.
+
+.IP "\fBCtrl-C\fP, \fBESC\fP"
+Leave edit mode, without executing a colon command or setting a trigger.
+
.SH OPTIONS
.IP "\fB-i\fP \fIreal\fP"