-
Notifications
You must be signed in to change notification settings - Fork 4
/
options.html
101 lines (100 loc) · 3.15 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>YakShave Options</title>
<link rel="stylesheet" href="common/options.css" />
<script src="common/config.js"></script>
<script src="options.js"></script>
</head>
<body onload="init();">
<h1>YakShave Options</h1>
<p class="warning">
Welcome! If you have Ruby set up on your system, I highly recommend
installing <a href="http://www.sinatrarb.com/">Sinatra</a> and running
<a href="yakserver-1.0.tar.gz">YakServer</a> (local download), the
companion to this extension. It runs on your computer and lets
YakShave trigger local commands (e.g. your favorite text editor).
</p>
<p>
For information on how to write binding scripts,
see <a href="help.html">the help page</a>.
</p>
<h2>Keyboard Setup</h2>
<p>
<input type="checkbox" id="altIsMeta" />
Use the key labeled "Alt" as Meta
</p>
<h2>Built-in Binding Sets</h2>
<p>
<input type="checkbox" class="file" value="bindings/base.js" />
Standard (<a id="baseFile" href="bindings/base.js">base.js</a> —
read this for examples)
</p>
<p>
<input type="checkbox" class="file" value="bindings/unix.js" />
Unix (<a id="emacsFile" href="bindings/unix.js">unix.js</a>)
</p>
<p>
<input type="checkbox" class="file" value="bindings/emacs.js" />
Emacs-like (<a id="emacsFile" href="bindings/emacs.js">emacs.js</a>)
</p>
<p>
<input type="checkbox" class="file" value="bindings/info.js" />
Info-like (<a id="infoFile" href="bindings/info.js">info.js</a>)
</p>
<p>
<input type="checkbox" class="file" value="bindings/vi.js" />
vi-like (<a id="viFile" href="bindings/vi.js">vi.js</a>)
</p>
<p>
<input type="checkbox" class="file" value="bindings/yakedit.js" />
YakServer text editing (<a id="yakeditFile"
href="bindings/yakedit.js">yakedit.js</a>)
</p>
<h2>Load from URL</h2>
<p>
If you're using YakServer, you can drop a file in
<kbd>~/.yakserver/public</kbd> and load it here.
</p>
<p>
<input type="checkbox" class="file" id="urlEnabled" />
Load bindings from
<input type="text" id="bindingUrl" class="url" />
</p>
<h2>Additional Bindings</h2>
<p class="warning">
Unfortunately, YakShave is not allowed to run content scripts on any
extension pages, even its own, so trying to edit this textarea with
YakServer won't work.
</p>
<textarea id="bindingText" cols="80"></textarea>
<h2>Blacklist</h2>
<p>
Enter regular expressions (one per line) of sites where you want
to disable YakShave entirely. For example,
<code>^https?://mail\.google\.com/</code> for GMail.
</p>
<textarea id="blacklist" cols="80"></textarea>
<h2>Authentication</h2>
<p>
If you're using YakServer, enter the username and password you set
for it here.
</p>
<table>
<tr>
<td>Username:</td>
<td><input type="text" id="username" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" id="password" /></td>
</tr>
</table>
<div class="actions">
<p>
<input type="button" value="Save Options" onclick="save();" />
</p>
</div>
</body>
</html>