Skip to content

Commit f9b0f0a

Browse files
committed
🔒 Add draft IRP
1 parent b5a1648 commit f9b0f0a

File tree

4 files changed

+463
-15
lines changed

4 files changed

+463
-15
lines changed

==="

Lines changed: 326 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,326 @@
1+
2+
SSUUMMMMAARRYY OOFF LLEESSSS CCOOMMMMAANNDDSS
3+
4+
Commands marked with * may be preceded by a number, _N.
5+
Notes in parentheses indicate the behavior if _N is given.
6+
A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.
7+
8+
h H Display this help.
9+
q :q Q :Q ZZ Exit.
10+
---------------------------------------------------------------------------
11+
12+
MMOOVVIINNGG
13+
14+
e ^E j ^N CR * Forward one line (or _N lines).
15+
y ^Y k ^K ^P * Backward one line (or _N lines).
16+
ESC-j * Forward one file line (or _N file lines).
17+
ESC-k * Backward one file line (or _N file lines).
18+
f ^F ^V SPACE * Forward one window (or _N lines).
19+
b ^B ESC-v * Backward one window (or _N lines).
20+
z * Forward one window (and set window to _N).
21+
w * Backward one window (and set window to _N).
22+
ESC-SPACE * Forward one window, but don't stop at end-of-file.
23+
ESC-b * Backward one window, but don't stop at beginning-of-file.
24+
d ^D * Forward one half-window (and set half-window to _N).
25+
u ^U * Backward one half-window (and set half-window to _N).
26+
ESC-) RightArrow * Right one half screen width (or _N positions).
27+
ESC-( LeftArrow * Left one half screen width (or _N positions).
28+
ESC-} ^RightArrow Right to last column displayed.
29+
ESC-{ ^LeftArrow Left to first column.
30+
F Forward forever; like "tail -f".
31+
ESC-F Like F but stop when search pattern is found.
32+
r ^R ^L Repaint screen.
33+
R Repaint screen, discarding buffered input.
34+
---------------------------------------------------
35+
Default "window" is the screen height.
36+
Default "half-window" is half of the screen height.
37+
---------------------------------------------------------------------------
38+
39+
SSEEAARRCCHHIINNGG
40+
41+
/_p_a_t_t_e_r_n * Search forward for (_N-th) matching line.
42+
?_p_a_t_t_e_r_n * Search backward for (_N-th) matching line.
43+
n * Repeat previous search (for _N-th occurrence).
44+
N * Repeat previous search in reverse direction.
45+
ESC-n * Repeat previous search, spanning files.
46+
ESC-N * Repeat previous search, reverse dir. & spanning files.
47+
^O^N ^On * Search forward for (_N-th) OSC8 hyperlink.
48+
^O^P ^Op * Search backward for (_N-th) OSC8 hyperlink.
49+
^O^L ^Ol Jump to the currently selected OSC8 hyperlink.
50+
ESC-u Undo (toggle) search highlighting.
51+
ESC-U Clear search highlighting.
52+
&_p_a_t_t_e_r_n * Display only matching lines.
53+
---------------------------------------------------
54+
Search is case-sensitive unless changed with -i or -I.
55+
A search pattern may begin with one or more of:
56+
^N or ! Search for NON-matching lines.
57+
^E or * Search multiple files (pass thru END OF FILE).
58+
^F or @ Start search at FIRST file (for /) or last file (for ?).
59+
^K Highlight matches, but don't move (KEEP position).
60+
^R Don't use REGULAR EXPRESSIONS.
61+
^S _n Search for match in _n-th parenthesized subpattern.
62+
^W WRAP search if no match found.
63+
^L Enter next character literally into pattern.
64+
---------------------------------------------------------------------------
65+
66+
JJUUMMPPIINNGG
67+
68+
g < ESC-< * Go to first line in file (or line _N).
69+
G > ESC-> * Go to last line in file (or line _N).
70+
p % * Go to beginning of file (or _N percent into file).
71+
t * Go to the (_N-th) next tag.
72+
T * Go to the (_N-th) previous tag.
73+
{ ( [ * Find close bracket } ) ].
74+
} ) ] * Find open bracket { ( [.
75+
ESC-^F _<_c_1_> _<_c_2_> * Find close bracket _<_c_2_>.
76+
ESC-^B _<_c_1_> _<_c_2_> * Find open bracket _<_c_1_>.
77+
---------------------------------------------------
78+
Each "find close bracket" command goes forward to the close bracket
79+
matching the (_N-th) open bracket in the top line.
80+
Each "find open bracket" command goes backward to the open bracket
81+
matching the (_N-th) close bracket in the bottom line.
82+
83+
m_<_l_e_t_t_e_r_> Mark the current top line with <letter>.
84+
M_<_l_e_t_t_e_r_> Mark the current bottom line with <letter>.
85+
'_<_l_e_t_t_e_r_> Go to a previously marked position.
86+
'' Go to the previous position.
87+
^X^X Same as '.
88+
ESC-m_<_l_e_t_t_e_r_> Clear a mark.
89+
---------------------------------------------------
90+
A mark is any upper-case or lower-case letter.
91+
Certain marks are predefined:
92+
^ means beginning of the file
93+
$ means end of the file
94+
---------------------------------------------------------------------------
95+
96+
CCHHAANNGGIINNGG FFIILLEESS
97+
98+
:e [_f_i_l_e] Examine a new file.
99+
^X^V Same as :e.
100+
:n * Examine the (_N-th) next file from the command line.
101+
:p * Examine the (_N-th) previous file from the command line.
102+
:x * Examine the first (or _N-th) file from the command line.
103+
^O^O Open the currently selected OSC8 hyperlink.
104+
:d Delete the current file from the command line list.
105+
= ^G :f Print current file name.
106+
---------------------------------------------------------------------------
107+
108+
MMIISSCCEELLLLAANNEEOOUUSS CCOOMMMMAANNDDSS
109+
110+
-_<_f_l_a_g_> Toggle a command line option [see OPTIONS below].
111+
--_<_n_a_m_e_> Toggle a command line option, by name.
112+
__<_f_l_a_g_> Display the setting of a command line option.
113+
___<_n_a_m_e_> Display the setting of an option, by name.
114+
+_c_m_d Execute the less cmd each time a new file is examined.
115+
116+
!_c_o_m_m_a_n_d Execute the shell command with $SHELL.
117+
#_c_o_m_m_a_n_d Execute the shell command, expanded like a prompt.
118+
|XX_c_o_m_m_a_n_d Pipe file between current pos & mark XX to shell command.
119+
s _f_i_l_e Save input to a file.
120+
v Edit the current file with $VISUAL or $EDITOR.
121+
V Print version number of "less".
122+
---------------------------------------------------------------------------
123+
124+
OOPPTTIIOONNSS
125+
126+
Most options may be changed either on the command line,
127+
or from within less by using the - or -- command.
128+
Options may be given in one of two forms: either a single
129+
character preceded by a -, or a name preceded by --.
130+
131+
-? ........ --help
132+
Display help (from command line).
133+
-a ........ --search-skip-screen
134+
Search skips current screen.
135+
-A ........ --SEARCH-SKIP-SCREEN
136+
Search starts just after target line.
137+
-b [_N] .... --buffers=[_N]
138+
Number of buffers.
139+
-B ........ --auto-buffers
140+
Don't automatically allocate buffers for pipes.
141+
-c -C .... --clear-screen --CLEAR-SCREEN
142+
Repaint by clearing rather than scrolling.
143+
-d ........ --dumb
144+
Dumb terminal.
145+
-D xx_c_o_l_o_r . --color=xx_c_o_l_o_r
146+
Set screen colors.
147+
-e -E .... --quit-at-eof --QUIT-AT-EOF
148+
Quit at end of file.
149+
-f ........ --force
150+
Force open non-regular files.
151+
-F ........ --quit-if-one-screen
152+
Quit if entire file fits on first screen.
153+
-g ........ --hilite-search
154+
Highlight only last match for searches.
155+
-G ........ --HILITE-SEARCH
156+
Don't highlight any matches for searches.
157+
--old-bot
158+
Revert to the old bottom of screen behavior.
159+
-h [_N] .... --max-back-scroll=[_N]
160+
Backward scroll limit.
161+
-i ........ --ignore-case
162+
Ignore case in searches that do not contain uppercase.
163+
-I ........ --IGNORE-CASE
164+
Ignore case in all searches.
165+
-j [_N] .... --jump-target=[_N]
166+
Screen position of target lines.
167+
-J ........ --status-column
168+
Display a status column at left edge of screen.
169+
-k _f_i_l_e ... --lesskey-file=_f_i_l_e
170+
Use a compiled lesskey file.
171+
-K ........ --quit-on-intr
172+
Exit less in response to ctrl-C.
173+
-L ........ --no-lessopen
174+
Ignore the LESSOPEN environment variable.
175+
-m -M .... --long-prompt --LONG-PROMPT
176+
Set prompt style.
177+
-n ......... --line-numbers
178+
Suppress line numbers in prompts and messages.
179+
-N ......... --LINE-NUMBERS
180+
Display line number at start of each line.
181+
-o [_f_i_l_e] .. --log-file=[_f_i_l_e]
182+
Copy to log file (standard input only).
183+
-O [_f_i_l_e] .. --LOG-FILE=[_f_i_l_e]
184+
Copy to log file (unconditionally overwrite).
185+
-p _p_a_t_t_e_r_n . --pattern=[_p_a_t_t_e_r_n]
186+
Start at pattern (from command line).
187+
-P [_p_r_o_m_p_t] --prompt=[_p_r_o_m_p_t]
188+
Define new prompt.
189+
-q -Q .... --quiet --QUIET --silent --SILENT
190+
Quiet the terminal bell.
191+
-r -R .... --raw-control-chars --RAW-CONTROL-CHARS
192+
Output "raw" control characters.
193+
-s ........ --squeeze-blank-lines
194+
Squeeze multiple blank lines.
195+
-S ........ --chop-long-lines
196+
Chop (truncate) long lines rather than wrapping.
197+
-t _t_a_g .... --tag=[_t_a_g]
198+
Find a tag.
199+
-T [_t_a_g_s_f_i_l_e] --tag-file=[_t_a_g_s_f_i_l_e]
200+
Use an alternate tags file.
201+
-u -U .... --underline-special --UNDERLINE-SPECIAL
202+
Change handling of backspaces, tabs and carriage returns.
203+
-V ........ --version
204+
Display the version number of "less".
205+
-w ........ --hilite-unread
206+
Highlight first new line after forward-screen.
207+
-W ........ --HILITE-UNREAD
208+
Highlight first new line after any forward movement.
209+
-x [_N[,...]] --tabs=[_N[,...]]
210+
Set tab stops.
211+
-X ........ --no-init
212+
Don't use termcap init/deinit strings.
213+
-y [_N] .... --max-forw-scroll=[_N]
214+
Forward scroll limit.
215+
-z [_N] .... --window=[_N]
216+
Set size of window.
217+
-" [_c[_c]] . --quotes=[_c[_c]]
218+
Set shell quote characters.
219+
-~ ........ --tilde
220+
Don't display tildes after end of file.
221+
-# [_N] .... --shift=[_N]
222+
Set horizontal scroll amount (0 = one half screen width).
223+
224+
--exit-follow-on-close
225+
Exit F command on a pipe when writer closes pipe.
226+
--file-size
227+
Automatically determine the size of the input file.
228+
--follow-name
229+
The F command changes files if the input file is renamed.
230+
--form-feed
231+
Stop scrolling when a form feed character is reached.
232+
--header=[_L[,_C[,_N]]]
233+
Use _L lines (starting at line _N) and _C columns as headers.
234+
--incsearch
235+
Search file as each pattern character is typed in.
236+
--intr=[_C]
237+
Use _C instead of ^X to interrupt a read.
238+
--lesskey-context=_t_e_x_t
239+
Use lesskey source file contents.
240+
--lesskey-src=_f_i_l_e
241+
Use a lesskey source file.
242+
--line-num-width=[_N]
243+
Set the width of the -N line number field to _N characters.
244+
--match-shift=[_N]
245+
Show at least _N characters to the left of a search match.
246+
--modelines=[_N]
247+
Read _N lines from the input file and look for vim modelines.
248+
--mouse
249+
Enable mouse input.
250+
--no-edit-warn
251+
Don't warn when using v command on a file opened via LESSOPEN.
252+
--no-keypad
253+
Don't send termcap keypad init/deinit strings.
254+
--no-histdups
255+
Remove duplicates from command history.
256+
--no-number-headers
257+
Don't give line numbers to header lines.
258+
--no-paste
259+
Ignore pasted input.
260+
--no-search-header-lines
261+
Searches do not include header lines.
262+
--no-search-header-columns
263+
Searches do not include header columns.
264+
--no-search-headers
265+
Searches do not include header lines or columns.
266+
--no-vbell
267+
Disable the terminal's visual bell.
268+
--redraw-on-quit
269+
Redraw final screen when quitting.
270+
--rscroll=[_C]
271+
Set the character used to mark truncated lines.
272+
--save-marks
273+
Retain marks across invocations of less.
274+
--search-options=[EFKNRW-]
275+
Set default options for every search.
276+
--show-preproc-errors
277+
Display a message if preprocessor exits with an error status.
278+
--proc-backspace
279+
Process backspaces for bold/underline.
280+
--PROC-BACKSPACE
281+
Treat backspaces as control characters.
282+
--proc-return
283+
Delete carriage returns before newline.
284+
--PROC-RETURN
285+
Treat carriage returns as control characters.
286+
--proc-tab
287+
Expand tabs to spaces.
288+
--PROC-TAB
289+
Treat tabs as control characters.
290+
--status-col-width=[_N]
291+
Set the width of the -J status column to _N characters.
292+
--status-line
293+
Highlight or color the entire line containing a mark.
294+
--use-backslash
295+
Subsequent options use backslash as escape char.
296+
--use-color
297+
Enables colored text.
298+
--wheel-lines=[_N]
299+
Each click of the mouse wheel moves _N lines.
300+
--wordwrap
301+
Wrap lines at spaces.
302+
303+
304+
---------------------------------------------------------------------------
305+
306+
LLIINNEE EEDDIITTIINNGG
307+
308+
These keys can be used to edit text being entered
309+
on the "command line" at the bottom of the screen.
310+
311+
RightArrow ..................... ESC-l ... Move cursor right one character.
312+
LeftArrow ...................... ESC-h ... Move cursor left one character.
313+
ctrl-RightArrow ESC-RightArrow ESC-w ... Move cursor right one word.
314+
ctrl-LeftArrow ESC-LeftArrow ESC-b ... Move cursor left one word.
315+
HOME ........................... ESC-0 ... Move cursor to start of line.
316+
END ............................ ESC-$ ... Move cursor to end of line.
317+
BACKSPACE ................................ Delete char to left of cursor.
318+
DELETE ......................... ESC-x ... Delete char under cursor.
319+
ctrl-BACKSPACE ESC-BACKSPACE ........... Delete word to left of cursor.
320+
ctrl-DELETE .... ESC-DELETE .... ESC-X ... Delete word under cursor.
321+
ctrl-U ......... ESC (MS-DOS only) ....... Delete entire line.
322+
UpArrow ........................ ESC-k ... Retrieve previous command line.
323+
DownArrow ...................... ESC-j ... Retrieve next command line.
324+
TAB ...................................... Complete filename & cycle.
325+
SHIFT-TAB ...................... ESC-TAB Complete filename & reverse cycle.
326+
ctrl-L ................................... Complete filename, list all.

0 commit comments

Comments
 (0)