head 1.5; access; symbols RELENG_4_0_0_RELEASE:1.4 RELENG_4:1.4.0.2 RELENG_4_BP:1.4 RELENG_3_4_0_RELEASE:1.1.1.1.10.2 RELENG_3_3_0_RELEASE:1.1.1.1.10.2 RELENG_3_2_PAO:1.1.1.1.0.12 RELENG_3_2_PAO_BP:1.1.1.1 RELENG_3_2_0_RELEASE:1.1.1.1 RELENG_3_1_0_RELEASE:1.1.1.1 RELENG_3:1.1.1.1.0.10 RELENG_3_BP:1.1.1.1 RELENG_2_2_8_RELEASE:1.1.1.1 RELENG_3_0_0_RELEASE:1.1.1.1 RELENG_2_2_7_RELEASE:1.1.1.1 RELENG_2_2_6_RELEASE:1.1.1.1 RELENG_2_2_5_RELEASE:1.1.1.1 bsd_44_lite_2:1.1.1.1 RELENG_2_2_2_RELEASE:1.1.1.1 RELENG_2_2_1_RELEASE:1.1.1.1 RELENG_2_2_0_RELEASE:1.1.1.1 RELENG_2_1_7_RELEASE:1.1.1.1 RELENG_2_1_6_1_RELEASE:1.1.1.1 RELENG_2_1_6_RELEASE:1.1.1.1 RELENG_2_2:1.1.1.1.0.8 RELENG_2_2_BP:1.1.1.1 RELENG_2_1_5_RELEASE:1.1.1.1 RELENG_2_1_0_RELEASE:1.1.1.1 RELENG_2_1_0:1.1.1.1.0.6 RELENG_2_1_0_BP:1.1.1.1 RELENG_2_0_5_RELEASE:1.1.1.1 RELENG_2_0_5:1.1.1.1.0.4 RELENG_2_0_5_BP:1.1.1.1 RELENG_2_0_5_ALPHA:1.1.1.1 RELEASE_2_0:1.1.1.1 BETA_2_0:1.1.1.1 ALPHA_2_0:1.1.1.1.0.2 bsd_44_lite:1.1.1.1 CSRG:1.1.1; locks; comment @# @; 1.5 date 2000.05.11.00.56.55; author hoek; state Exp; branches; next 1.4; 1.4 date 99.12.26.04.17.27; author hoek; state Exp; branches; next 1.3; 1.3 date 99.09.03.22.31.17; author hoek; state Exp; branches; next 1.2; 1.2 date 99.06.01.20.02.34; author hoek; state Exp; branches; next 1.1; 1.1 date 94.05.27.12.30.46; author rgrimes; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 94.05.27.12.30.47; author rgrimes; state Exp; branches 1.1.1.1.10.1; next ; 1.1.1.1.10.1 date 99.07.28.06.09.51; author hoek; state Exp; branches; next 1.1.1.1.10.2; 1.1.1.1.10.2 date 99.07.28.06.17.11; author hoek; state Exp; branches; next ; desc @@ 1.5 log @Make the TAB key tab. Under syscons, shift-TAB also performs a backtab. @ text @ Commands flagged with an asterisk (``*'') may be preceeded by a number. Commands of the form ``^X'' are control characters, i.e. control-X. The arrow keys and page-up/down keys act as expected. Additional keys are, h Display this help. f, ^F, SPACE * Forward N lines, default one screen. b, ^B * Backward N lines, default one screen. j, CR * Forward N lines, default 1 line. k * Backward N lines, default 1 line. d, ^D * Forward N lines, default half screen or last N to d/u. u, ^U * Backward N lines, default half screen or last N to d/u. g * Go to line N, default 1. G * Go to line N, default the end of the file. p, % * Position to N percent into the file. HOME Toggle horizontal scroll and line-wrap on and off tab * Tab N x 8 columns to the right r, ^L Repaint screen. R Repaint screen, discarding buffered input. m[a-z] Mark the current position with the supplied letter. '[a-z] Return to the position previously marked by this letter. '' Return to previous position. /pattern * Search forward for N-th line containing the pattern. /!pattern * Search forward for N-th line NOT containing the pattern. ?pattern * Search backward for N-th line containing the pattern. ?!pattern * Search backward for N-th line NOT containing the pattern. n * Repeat previous search (for N-th occurence). N * Repeat previous search (for N-th occurence), switching the direction of the search. :a Display the list of files. E [file] Examine a new file. :n * Examine the next file. :p * Examine the previous file. :t [tag] Examine the tag. t, T Move forward or backward N tags in the gtags queue. v Run an editor on the current file. =, ^G Print current file name and stats. q, :q, or ZZ Exit. @ 1.4 log @For some reason the HOME key wasn't documented. Document it. Expand the docs on a couple other keys. While I'm here, document another ~3 bugs that have been around for all eternity in the hope that I'll someday bother to fix them. @ text @d17 1 @ 1.3 log @Thorough revamp of how input commands are processed. This allows customization of user keys (documentation pending). The only key whose semantics have changed is the capital 'N' key, which now performs a repeat-search in the opposite direction (just like in vi). This commit is a little bulkier than what I had originally planned. I'm not completely happy with the direction it went, but it's definately an improvement, and the alternative is to continue becoming irrelevant compared to GNU less. (Does anyone even _use_ /usr/bin/more these days?) @ text @d2 2 a3 1 Commands of the form ``^X'' are control characters, i.e. control-X. d16 1 @ 1.2 log @Grok gtags too. @ text @d28 2 d33 2 a34 2 :n, N * Examine the next file. :p, P * Examine the previous file. @ 1.1 log @Initial revision @ text @d34 1 @ 1.1.1.1 log @BSD 4.4 Lite Usr.bin Sources @ text @@ 1.1.1.1.10.1 log @commit-notes @ text @a33 1 t, T Move forward or backward N tags in the gtags queue. @ 1.1.1.1.10.2 log @[Whoops... used ci -m instead of -F on the last commit...] MFC: misc incidental cleanup, gtags support, better line-number passing to $EDITOR, working arrow keys, $Id$ to manpage @ text @@