Debian Codegraph @

doc/keys.html

raw ◀ ▶
1 Debian patch touch this file
1 <html>
2 <head>
3 <title>keystrokes table</title>
4 </head>
5 <body>
6
7 <h1 align="center">keystrokes table<br />>==================&lt;</h1>
8
9 <p>
10 [This file explains the usage of the netrik interactive UI. See index.txt or
11 <a href="index.html">index.html</a> for an overview of available netrik
12 documentation.]
13 </p>
14
15 <p>
•16 Note: netrik is still in early development state; keystrokes and commands are
17 subject to changes.
18 </p>
19
20 <h2>Introduction</h2>
21
22 <p>
23 netrik's user interface works just like the editor "vi", and some other common
24 programs (e.g. "less").
25 </p>
26
27 <p>
28 There are a couple of operation modes, each one with distinct behaviour; these
29 modes can be switched upon need.
30 </p>
31
32 <p>
33 The mode entered when starting netrik, and used most of the time, is "normal
34 mode". In this mode you can move around the page, select links, etc. using
35 various command letters, and sometimes alternatively the cursor, &lt;PgUp>/&lt;PgDn>
36 and other keys. (The former have the advantage that you needn't take your hands
37 off the normal typing position.) The typed letters do not show up anywhere in
38 this mode; they only tell netrik to do some special action -- just like the
39 cursor keys.
40 </p>
41
42 <p>
43 By typing ':' in normal mode, another mode is entered, named "command prompt".
44 This is indicated by a ':' showing up at the beginning of the bottom screen
45 line, and the cursor standing just behind this ':'. You can type in a command
46 here. The command is executed as soon as you type &lt;return>, and netrik returns
47 to normal mode afterwards.
48 </p>
49
50 <p>
51 If compiled using the GNU Readline library (default), you can use all the handy
52 keystrokes for editing the command prompt that are also available in other
53 programs using Readline. (e.g. the standard GNU/Linux shell "bash".)
54 </p>
55
56 <h2>Keystrokes in normal mode</h2>
57
58 <p><pre>
59 <strong> ^R </strong>reload current page
60
61 <strong> b </strong>
62 <strong> &lt;left> </strong>back to previous page in history
63
64 <strong> f </strong>
65 <strong> &lt;right> </strong>forward to next page in history (after 'b')
66
67 <strong> B </strong>back to page before last absolute URL entered/followed
68 (previous site)
69
70 <strong> F </strong>forward to page before next absolute URL entered/followed
71
72 <strong> s </strong>set page mark
73
74 <strong> S </strong>remove page mark
75
76 <strong> r </strong>return to previous page in history marked with 's'
77
78 <strong> R </strong>forward to next page in history marked with 's'
79
80 <strong> ^H </strong>cursor left
81
82 <strong> ^J </strong>cursor down
83
84 <strong> ^K </strong>cursor up
85
86 <strong> ^L </strong>cursor right
87
88 <strong> j </strong>scroll one line forward
89
90 <strong> J </strong>
91 <strong> &lt;down> </strong>go to next link, or scroll one line forward
92 (if no more links on screen)
93
94 <strong> k </strong>scroll one line backward
95
96 <strong> K </strong>
97 <strong> &lt;up> </strong>go to previous link, or scroll one line backward
98 (if no more links on screen)
99
100 <strong> + </strong>
101 <strong> = </strong>go to first link in next line, or scroll one line forward
102 (if no more links on screen)
103
104 <strong> - </strong>go to first link in previous line, or scroll one line backward
105 (if no more links on screen)
106
107 <strong> ^ </strong>
108 <strong> ^A </strong>go to first link starting in line
109
110 <strong> - </strong>go to first link in line
111 (different from '^' if there is a link wrapped from previous line)
112
113 <strong> </strong>
114 <strong> ^E </strong>go to last link in line
115
116 <strong> H </strong>go to first link on screen
117
118 <strong> L </strong>go to last link on screen
119
120 <strong> M </strong>go to midmost link (first link in second screen half)
121
122 <strong> &lt;tab> </strong>go to next link
123
124 <strong> p </strong>go to previous link
125
126 <strong> &lt;bs> </strong>go to first link on page
127
128 <strong> u </strong>show link URL
129
130 <strong> U </strong>show absolute link target URL
131
132 <strong> c </strong>show current page URL
133
134 <strong> &lt;return> </strong>follow selected link (or manipulate form control)
135
136 <strong> &lt;del> </strong>scroll two lines forward
137
138 <strong> &lt;ins> </strong>scroll two lines backward
139
140 <strong> ^F </strong>
141 <strong> &lt;space> </strong>scroll one screen forward
142
143 <strong> ^B </strong>scroll one screen backward
144
145 <strong> ^D </strong>
146 <strong> &lt;PgDn> </strong>scroll one half screen forward
147
148 <strong> ^U </strong>
149 <strong> &lt;PgUp> </strong>scroll one half screen backward
150
151 <strong> g </strong>
152 <strong> &lt;Home> </strong>go to page top
153
154 <strong> G </strong>
155 <strong> &lt;End> </strong>go to page end
156
157 <strong> l </strong>activate links by label
158
159 <strong> q </strong>quit netrik
160
161 <strong> / </strong>start text search (s.b.)
162
163 <strong> : </strong>enter command prompt (s.b.)
164 </pre></p>
165
166 <h2>Command promt</h2>
167
168 <p>
169 Only one command is available for now (in two variations):
170 </p>
171
172 <p><pre>
173 <strong>:e URL </strong>load file "URL" and display it in the pager
174 (URL relative to current page)
175
176 <strong>:E URL </strong>load file "URL" and display it in the pager
177 (absolute URL)
178 </pre></p>
179
180 <h2>Text Search</h2>
181
182 <p>
183 Pressing '/' in normal mode opens the search prompt. This is similar to the
184 command prompt (s.a.), only you are not prompted for a command, but for a
185 search string. Type in what you want to search for, and confirm with &lt;return>.
186 </p>
187
188 <p>
189 If you have already done a search in this session, you can search again for the
190 same string by only pressing &lt;return> without entering any string.
191 </p>
192
193 <p>
194 Use '^D' on an empty search prompt to abort the prompt and return to the pager.
195 (If you have already typed some string you first need to delete it, using '^U'
196 for example.)
197 </p>
198
199 <h2>Signals</h2>
200
201 <p>
202 Netrik intercepts the interrupt signal (SIGINT, usually produced by ^C ), and
203 uses it to allow aborting a file or HTTP load. In other situations, it is
204 ignored completely.
205 </p>
206
207 <p>
208 Use the quit signal (SIGQUIT, usually ^\ ) to "violently" quit netrik. (This
209 has the same effect as an unintercepted ^C.)
210 </p>
211
212 </body>
213 </html>