Skip to content

Commit f49bff7

Browse files
committed
fix: remove duplicate method definitions in main()
1 parent 454cab2 commit f49bff7

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

jh bihkwdslj

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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.

0 commit comments

Comments
 (0)