From 099b85810edc981348ca2e4dc939cc260bb8f5ee Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 5 Jan 2019 21:11:08 -0800 Subject: [PATCH] Updated docs. --- README.md | 16 +++++++++++----- doc/ascii.1 | 25 ++++++++++++++++++------- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 10c64e9..bb9c399 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,14 @@ passed as arguments. ## Controls In the ASCII table viewer, you can navigate with arrow keys or h/j/k/l. Pressing `enter` will append the selected character to the output buffer and -`backspace` will delete from the output buffer. Pressing `i` will enter insert -mode, where you can type freely into the output buffer, pressing `escape` will -leave insert mode. Pressing `q` or `escape` will exit and print the output -buffer to stdout. Hitting control-c will quit without printing the output -buffer. +`backspace` will delete from the output buffer. + +Pressing `/` will open a search. You can begin typing to search by character or +by name, and hit `enter` to select the result or `escape` to cancel. After +selecting a result, you can hit `n` to jump to the next match or `N` to jump to +the previous match. + +Pressing `i` will enter insert mode, where you can type freely into the output +buffer, pressing `escape` will leave insert mode. Pressing `q` or `escape` will +exit and print the output buffer to stdout. Hitting control-c will quit without +printing the output buffer. diff --git a/doc/ascii.1 b/doc/ascii.1 index c6d0135..4d59cd7 100644 --- a/doc/ascii.1 +++ b/doc/ascii.1 @@ -24,18 +24,29 @@ If decimal or hex numbers are passed as extra arguments, the corresponding raw ASCII values will be appended to the output buffer after any piped input. .SH CONTROLS +.TP .B Navigating: In the ASCII table, arrow keys or h/j/k/l can be used to navigate. -.B Editing: -You can use 'enter' to append the selected character to the output buffer and -\'backspace' to delete from the output buffer. Or, for more rapid input, press -\'i' to enter insert mode, where you can type freely, and 'escape' when you're -done. +.TP +.B Searching: +Pressing \fB/\fR will open a search. You can begin typing to search by +character or by name, and hit \fBenter\fR to select the result or \fBescape\fR +to cancel. After selecting a result, you can hit \fBn\fR to jump to the next +match or \fBN\fR to jump to the previous match. +.TP +.B Editing: +You can hit \fBenter\fR to append the selected character to the output buffer +and \fBbackspace\fR to delete from the output buffer. Or, for more rapid input, +press \fBi\fR to enter insert mode, where you can type freely, and \fBescape\fR +when you're done. + +.TP .B Exiting: -\'q' or 'escape' will quit and print the output buffer. Control-c can be used -to quit without printing the output buffer. +Press \fBq\fR or \fBescape\fR to quit and print the output buffer or hit +\fBcontrol-c\fR to quit without printing anything. + .SH EXAMPLES .TP