-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
152 lines (127 loc) · 3.97 KB
/
options.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<html>
<head>
<title>Mercury Options</title>
<link href="options.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="mercury.js"></script>
<script type="text/javascript" src="options.js"></script>
</head>
<body onload="startOptions()">
<div class="block">
<h1>Mercury Options</h1>
This page allows you to configure mercury. Click the question mark in a section
title for a description of how the individual options work.
<h3>
Groups
<div class="expander" onclick="expanderClicked('groups')">?</div>
</h3>
<span class="groupsHelp">
Mercury allows you to open multiple tabs in one operation. Where a normal
operation shows a list of the bookmarks that best match the input string, a
group expansion searches for multiple input strings and can open the best match
for each in separate tabs. For instance, when group expansion is enabled this:
<blockquote>
so do, re, mi
</blockquote>
will find the best matches for <code>so do</code>, <code>so re</code> and
<code>so mi</code> and open the best match for each in a separate tab. You can
use multiple groups at the same time, so
<blockquote>
o, so do, re
</blockquote>
will expand to <code>o do</code>, <code>o re</code>, <code>so do</code> and
<code>so re</code>.
</span>
<div class="setting">
<input type="checkbox" id="groupExpansionCheckbox">
<span class="caption">
Enable group expansion
</span>
</input>
<div class="status unchanged" id="groupExpansionIndicator">
unchanged
</div>
</div>
<span class="groupsHelp">
If you use group expansion a lot you may sometimes find yourself often using the
same groups. To make that easier mercury supports <i>group variables</i> which
lets you define a variable that will be replaced with a group. For instance, if
you often find yourself writing
<blockquote>
sv a, b, c, d, e
</blockquote>
you can simplify this by defining a bookmark, let's call it <i>p</i>, that
points to the fake URL
<blockquote>
set://a/b/c/d/e/
</blockquote>
Now you can just write
<blockquote>
sv $p
</blockquote>
and you will get the same effect as if you'd written the full expression above.
</span>
<div class="setting">
<input type="checkbox" id="groupVariablesCheckbox">
<span class="caption">
Enable group variables
</span>
</input>
<div class="status unchanged" id="groupVariablesIndicator">
unchanged
</div>
</div>
<span class="groupsHelp">
Yes, the <code>set://...</code> syntax is weird but it's there to play nice with
the bookmark manager.
</span>
<h3>
Restrictions
<div class="expander" onclick="expanderClicked('restrict')">?</div>
</h3>
<span class="restrictHelp">
Any bookmark folders mentioned in this comma-separated list will not be searched
by mercury.
</span>
<div class="setting">
<span class="caption">
Don't complete bookmarks in these folders:
</span>
<br/>
<input type="text" id="excludeFoldersText" class="singleline"></input>
<div class="status unchanged" id="excludeFoldersIndicator">
unchanged
</div>
</div>
<span class="restrictHelp">
If any bookmark folders are mentioned in this comma-separated list only they
will be searched by mercury.
</span>
<div class="setting">
<span class="caption">
Only complete bookmarks in these folders:
</span>
<br/>
<input type="text" id="includeFoldersText" class="singleline"></input>
<div class="status unchanged" id="includeFoldersIndicator">
unchanged
</div>
</div>
<h3>
Debugging
<div class="expander" onclick="expanderClicked('debug')">?</div>
</h3>
<span class="debugHelp">
This section has various tools to aid debugging of mercury. This box shows
the raw completions and scores when searching for an input string.
<div class="debug">
<input type="text" id="text" onkeyup="textKeyUp()" class="searchText"></input>
<div id="entries" class="searchEntries"></div>
</div>
</span>
<div class="controls">
<button id="save">Apply</button>
<button id="reset">Reset</button>
</div>
</div>
</body>
</html>