-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'mattirn/less-help'
- Loading branch information
Showing
3 changed files
with
182 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
builtins/src/main/resources/org/jline/builtins/less-help.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
|
||
SUMMARY OF LESS COMMANDS | ||
|
||
Commands marked with * may be preceded by a number, N. | ||
Notes in parentheses indicate the behavior if N is given. | ||
A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K. | ||
|
||
h H Display this help. | ||
q :q Q :Q ZZ Exit. | ||
--------------------------------------------------------------------------- | ||
|
||
MOVING | ||
|
||
e ^E j ^N CR * Forward one line (or N lines). | ||
y ^Y k ^K ^P * Backward one line (or N lines). | ||
f ^F ^V SPACE * Forward one window (or N lines). | ||
b ^B ESC-v * Backward one window (or N lines). | ||
z * Forward one window (and set window to N). | ||
w * Backward one window (and set window to N). | ||
ESC-SPACE * Forward one window, but don't stop at end-of-file. | ||
d ^D * Forward one half-window (and set half-window to N). | ||
u ^U * Backward one half-window (and set half-window to N). | ||
ESC-) RightArrow * Left one half screen width (or N positions). | ||
ESC-( LeftArrow * Right one half screen width (or N positions). | ||
g < ESC-< * Go to first line in file (or line N). | ||
G > ESC-> * Go to last line in file (or line N). | ||
--------------------------------------------------- | ||
Default "window" is the screen height. | ||
Default "half-window" is half of the screen height. | ||
--------------------------------------------------------------------------- | ||
|
||
SEARCHING | ||
|
||
/pattern * Search forward for (N-th) matching line. | ||
?pattern * Search backward for (N-th) matching line. | ||
n N * Repeat previous search (for N-th occurrence). | ||
ESC-n ESC-N * Repeat previous search, spanning files. | ||
ESC-u Undo (toggle) search highlighting. | ||
--------------------------------------------------------------------------- | ||
|
||
CHANGING FILES | ||
|
||
:n * Examine the (N-th) next file from the command line. | ||
:p * Examine the (N-th) previous file from the command line. | ||
--------------------------------------------------------------------------- | ||
|
||
MISCELLANEOUS COMMANDS | ||
|
||
-<flag> Toggle a command line option [see OPTIONS below]. | ||
--<name> Toggle a command line option, by name. | ||
--------------------------------------------------------------------------- | ||
|
||
OPTIONS | ||
|
||
Most options may be changed either on the command line, | ||
or from within less by using the - or -- command. | ||
Options may be given in one of two forms: either a single | ||
character preceded by a -, or a name preceded by --. | ||
|
||
-? ........ --help | ||
Display help (from command line). | ||
-e ........ --quit-at-eof | ||
Quit at second end of file. | ||
-E ........ --QUIT-AT-EOF | ||
Quit at end of file. | ||
-i ........ --ignore-case | ||
Ignore case in searches that do not contain uppercase. | ||
-I ........ --IGNORE-CASE | ||
Ignore case in all searches. | ||
-N ........ --LINE-NUMBERS | ||
Display line numbers. | ||
-q -Q .... --quiet --QUIET --silent --SILENT | ||
Quiet the terminal bell. | ||
-S ........ --chop-long-lines | ||
Chop (truncate) long lines rather than wrapping. | ||
-x [N[,...]] --tabs=[N[,...]] | ||
Set tab stops (from command line). |