make S-f open favorites
[xxxterm.git] / xxxterm.1
blobb78c0825346c0dba7ae677ba0f9ac601b95da9c5
1 .\"     $xxxterm$
2 .\"
3 .\" Copyright (c) 2010 Marco Peereboom <marco@peereboom.us>
4 .\"
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
8 .\"
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 .\"
17 .Dd $Mdocdate$
18 .Dt XXXTERM 1
19 .Os
20 .Sh NAME
21 .Nm xxxterm
22 .Nd lightweight web browser with vi key bindings
23 .Sh SYNOPSIS
24 .Nm xxxterm
25 .Bk -words
26 .Op Fl STtV
27 .Op Fl f Ar file
28 .Op Ar uri ...
29 .Ek
30 .Sh DESCRIPTION
31 .Nm
32 is a minimalistic web browser that tries to stay out of the way so that
33 valuable screen real estate can be used for much more important stuff.
34 It has sane defaults and does not require one to learn a language to do any
35 configuration.
36 It was written by hackers for hackers and it strives to be small, compact and
37 fast.
38 .Pp
39 When
40 .Nm
41 starts up, it reads settings from its configuration file,
42 .Pa xxxterm.conf .
43 See the
44 .Sx CONFIGURATION FILES
45 section below.
46 .Pp
47 The following notation is used throughout this page:
48 .Pp
49 .Bl -tag -width Ds -offset indent -compact
50 .It Cm M
51 Meta
52 .It Cm S
53 Shift
54 .It Cm C
55 Control
56 .It Cm M1
57 Mouse button 1
58 .El
59 .Pp
60 .Nm
61 is very simple in its use.
62 Most of the actions are initiated via key or mouse bindings.
63 See the
64 .Sx BINDINGS
65 section below for defaults and customizations.
66 .Pp
67 The options are as follows:
68 .Bl -tag -width Ds
69 .It Fl f Ar file
70 Use alternate config file.
71 .It Fl S
72 Disable the toolbar.
73 .It Fl T
74 Disable visualization of tabs.
75 .It Fl t
76 Disable tabs.
77 .It Fl V
78 Display version and exit.
79 .El
80 .Sh CONFIGURATION FILES
81 .Nm
82 tries to open the user specific file,
83 .Pa ~/.xxxterm.conf .
84 If that file is unavailable,
85 it then uses built-in defaults.
86 .Pp
87 The format of the file is \*(Ltkeyword\*(Gt = \*(Ltsetting\*(Gt.
88 For example:
89 .Pp
90 .Dl http_proxy = http://127.0.0.1:8080
91 .Pp
92 Enabling or disabling an option is done by using 1 or 0 respectively.
93 .Pp
94 The file supports the following keywords:
95 .Pp
96 .Bl -tag -width "title_class_enabledXXX" -offset indent -compact
97 .It Cm ctrl_click_focus
98 Give focus in newly created tab instead of opening it in the background.
99 .It Cm read_only_cookies
100 Mark cookies file read-only and discard all cookies once the sessions is
101 terminated.
102 .It Cm cookies_enabled
103 Enable cookies.
104 .It Cm enable_scripts
105 Enable scripts.
106 .It Cm enable_plugins
107 Enable plugins.
108 .It Cm default_font_size
109 Set the default browsing font size.
110 .It Cm http_proxy
111 Proxy server in URI format.
112 .It Cm download_dir
113 Locations where files are downloaded to.
114 This directory must exist and
116 validates that during startup.
117 .It Cm fancy_bar
118 Enables a backward, forward and stop button to the toolbar.
119 Additionally if search_string is set it'll enable an entry box for searches.
120 .It Cm search_string
121 Default search engine string.
122 See xxxterm.conf file for details.
123 .It Cm mime_type
124 Sets an action for a specific or default MIME type.
125 For example, to download and view a pdf using kpdf set mime_type =
126 application/pdf,kpdf.
127 To set a default value use *, for example mime_type = video/*,mplayer.
128 Note that the action is only passed the URI and not all applications are
129 capable of downloading content and therefore one might have to create a wrapper
130 script to download the content first.
131 .It Cm alias
132 Defines an alias for a given URL, so that the URL is loaded when the alias is
133 entered in the address bar.
134 If the aliased URL includes a %s format specifier, then any argument given after
135 the alias on the address bar is substituted.
136 For example, if g,http://www.google.com/search?q=%s is defined as an alias,
137 then the URL http://www.google.com/search?q=foo is loaded when navigating to
138 "g foo".
142 overrides http_proxy if it is specified as an environment variable.
143 .Sh BINDINGS
145 provides many functions (or actions) accessed via key or mouse bindings.
147 The current mouse bindings are described below:
149 .Bl -tag -width "tabnew, tabedit, tabe [URI]" -offset indent -compact
150 .It Cm C-M1
151 Open new tab with the clicked link.
154 The default key bindings are described below.
156 Search:
158 .Bl -tag -width "tabnew, tabedit, tabe [URI]" -offset indent -compact
159 .It Cm /
160 Start a search
161 .It Cm ?
162 Start a backwards search
163 .It Cm n
164 Next item matching search
165 .It Cm N
166 Previous item matching search
169 Focus:
171 .Bl -tag -width "tabnew, tabedit, tabe [URI]" -offset indent -compact
172 .It Cm F6
173 Focus on URI entry
174 .It Cm F7
175 Focus on search entry
178 Navigation:
180 .Bl -tag -width "tabnew, tabedit, tabe [URI]" -offset indent -compact
181 .It Cm F5, C-r, C-l
182 Refresh page
183 .It Cm Backspace
184 Previous page
185 .It Cm M-Left
186 Previous page
187 .It Cm S-BackSpace, M-Right
188 Forward page
189 .It Cm j, Down
190 Next line on page
191 .It Cm k, Up
192 Previous line on page
193 .It Cm G, End
194 Bottom of page
195 .It Cm gg, Home
196 Top of page
197 .It Cm Space, C-f, PageDown
198 Page down
199 .It Cm C-b, PageUp
200 Page up
201 .It Cm l, Right
202 Page right
203 .It Cm h, Left
204 Page left
205 .It Cm $
206 Page far right
207 .It Cm 0
208 Page far left
209 .It Cm S-f
210 Favorites
213 Tab Manipulation:
215 .Bl -tag -width "tabnew, tabedit, tabe [URI]" -offset indent -compact
216 .It Cm C-T
217 Create new tab with focus in URI entry
218 .It Cm C-W
219 Destroy current tab
220 .It Cm C-[1..0]
221 Jump to page N
222 .It Cm C-minus
223 Shrink font size by one point.
224 .It Cm C-plus, C-equal
225 Grow font size by one point.
228 Mouse-less browsing (a.k.a. link following):
230 .Bl -tag -width "tabnew, tabedit, tabe [URI]" -offset indent -compact
231 .It Cm f
232 Highlight all links and prefix them with a number.
233 Press number to follow link.
234 Alternatively one can type the name of the link and when there are no more
235 possibilities
237 will follow the link.
240 Exiting:
242 .Bl -tag -width "tabnew, tabedit, tabe [URI]" -offset indent -compact
243 .It Cm C-Q
244 Quit
247 Note: WebKit & GTK+ have many default key bindings that are not overruled and
248 therefore are available as-is.
250 Command mode is entered by typing a colon and exited by typing Esc.
251 The commands and descriptions are listed below:
253 .Bl -tag -width "tabnew, tabedit, tabe [URI]" -offset indent -compact
254 .It Cm qa, qa!, q!
255 Quit
257 .It Cm fav
258 Show favorites
259 .It Cm favadd
260 Add current page to favorites
261 .It Cm help
262 Show help file.
263 .It Cm open, op, o <URI>
264 Open URI.
265 .It Cm tabnew, tabedit, tabe [URI]
266 Create new tab and optionally open provided URI
267 .It Cm tabclose, tabc
268 Close current tab.
269 .It Cm quit, q
270 Close current tab and quit
272 if it is the last tab.
273 .It Cm tabprevious, tabp
274 Go to the previous tab.
275 .It Cm tabnext, tabn
276 Go to the next tab.
278 .Sh FILES
279 .Bl -tag -width "/etc/xxxterm.confXXX" -compact
280 .It Pa ~/.xxxterm.conf
282 user specific settings.
283 .It Pa ~/.xxxterm
285 scratch directory.
287 .Sh HISTORY
289 was inspired by vimprobable2 and the bloat in other UNIX web browsers.
290 .Sh AUTHORS
291 .An -nosplit
294 was written by
295 .An Marco Peereboom Aq marco@peereboom.us