-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
283 lines (238 loc) · 8.35 KB
/
index.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!doctype html>
<html>
<head>
<title>Tab to Window</title>
<style>
@font-face {
font-family: "Oxygen";
font-style: normal;
font-weight: 300;
src:
local("Oxygen Light"),
local("Oxygen-Light"),
url(css/fonts/oxygenLight.woff) format("woff");
}
@font-face {
font-family: "Oxygen";
font-style: normal;
font-weight: 400;
src:
local("Oxygen"),
local("Oxygen-Regular"),
url(css/fonts/oxygenRegular.woff) format("woff");
}
@font-face {
font-family: "Oxygen";
font-style: normal;
font-weight: 700;
src:
local("Oxygen Bold"),
local("Oxygen-Bold"),
url(css/fonts/oxygenBold.woff) format("woff");
}
html {
height: 100%;
}
body {
height: 100%;
background-color: rgb(43, 156, 212);
font-family: "Oxygen", sans-serif;
}
h1,
h2 {
border-bottom: 1px rgb(200, 200, 200) solid;
padding-bottom: 10px;
}
.container {
max-width: 800px;
min-width: 600px;
margin: 10px auto;
background: white;
padding: 5px 20px;
border-radius: 10px;
}
kbd {
background-color: rgb(243, 243, 243);
border: solid 1px #ccc;
box-sizing: border-box;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
color: rgb(33, 33, 33);
font-family: monospace;
margin-left: 2px;
padding: 1px 4px;
}
p,
ul {
margin: 16px 0;
}
ul {
list-style-type: none;
padding-left: 10px;
}
li {
margin-bottom: 7px;
}
img,
video {
border: 1px black solid;
}
.key-label {
display: inline-block;
width: 80px;
}
.command-sets {
display: flex;
justify-content: space-between;
}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6P35E7VQNF"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-6P35E7VQNF");
</script>
</head>
<body>
<div class="container">
<h1>Tab to Window</h1>
<h3>
<a
href="https://chrome.google.com/webstore/detail/tab-to-windowpopup-keyboa/adbkphmimfcaeonicpmamfddbbnphikh"
>Install via Chrome Web Store</a
>
</h3>
<p>Dragging is a drag, move your tabs to a new window in an instant!</p>
<video playsinline controls loop width="100%" height="auto">
<source src="docs/01-basic.mp4" type="video/mp4" />
<source src="docs/01-basic.webm" type="video/webm" />
</video>
</div>
<div class="container">
<h2>Moving Tabs</h2>
<p>Tabs can be moved to a new window with either a key command:</p>
<ul>
<li><span class="key-label">Mac:</span> <kbd>Alt</kbd><kbd>X</kbd></li>
<li><span class="key-label">Windows:</span> <kbd>Alt</kbd><kbd>X</kbd></li>
<li><span class="key-label">Linux:</span> <kbd>Alt</kbd><kbd>Shift</kbd><kbd>X</kbd></li>
</ul>
<p>Or by clicking the extension button:</p>
<img src="docs/button.jpg" alt="Menu Button" width="400" height="auto" />
</div>
<div class="container">
<h2>Popup Window</h2>
<p>New windows can also be a Popup window (no UI):</p>
<img id="popup" src="docs/popup.jpg" alt="Popup Window" width="100%" height="auto" />
<p>This can be done with a key command:</p>
<ul>
<li><span class="key-label">Mac:</span> <kbd>Alt</kbd><kbd>C</kbd></li>
<li><span class="key-label">Windows:</span> <kbd>Alt</kbd><kbd>C</kbd></li>
<li><span class="key-label">Linux:</span> <kbd>Alt</kbd><kbd>Shift</kbd><kbd>C</kbd></li>
</ul>
<p>Or by changing the Window Type for the button (right click):</p>
<img src="docs/type.jpg" alt="Changing Window Type" width="400" height="auto" />
</div>
<div class="container">
<h2>Moving Between Windows</h2>
<p>
Tabs can also be moved between windows with the <strong>Tab to Next Window</strong> and
<strong>Tab To Previous Window</strong> commands
</p>
<h3>Tab To Next Window</h3>
<ul>
<li><span class="key-label">Mac:</span> <kbd>Alt</kbd><kbd>Z</kbd></li>
<li><span class="key-label">Windows:</span> <kbd>Alt</kbd><kbd>Z</kbd></li>
<li><span class="key-label">Linux:</span> <kbd>Alt</kbd><kbd>Shift</kbd><kbd>Z</kbd></li>
</ul>
<p>
(No defaults are provided for <strong>Tab To Previous Window</strong> as Chrome has a limit
of four default key commands)
</p>
<video playsinline controls loop width="100%" height="auto">
<source src="docs/02-window.mp4" type="video/mp4" />
<source src="docs/02-window.webm" type="video/webm" />
</video>
</div>
<div class="container">
<h2>Moving Multiple Tabs</h2>
<p>
You can move multiple tabs by selecting them first (by holding <kbd>shift</kbd> or
<kbd>command</kbd>/<kbd>control</kbd>):
</p>
<video playsinline controls loop width="100%" height="auto">
<source src="docs/03-multiple.mp4" type="video/mp4" />
<source src="docs/03-multiple.webm" type="video/webm" />
</video>
</div>
<div class="container">
<h2>Arrangement</h2>
<p>The window arrangement and other settings can be customised in the options page:</p>
<img src="docs/options.jpg" alt="Options Page" width="400" height="auto" />
<p>Get to it by right clicking the extension button:</p>
<img src="docs/options-menu.jpg" alt="Options Menu" width="400" height="auto" />
</div>
<div class="container">
<h2>Multiple Displays</h2>
<p>Multiple displays are supported! Windows are split on their current display.</p>
<p>
A tab can be moved to a new window on the <em>next</em> display with the
<strong>Tab to Next Display</strong> command.
</p>
<ul>
<li><span class="key-label">Mac:</span> <kbd>Alt</kbd><kbd>D</kbd></li>
<li><span class="key-label">Windows:</span> <kbd>Alt</kbd><kbd>Shift</kbd><kbd>D</kbd></li>
<li><span class="key-label">Linux:</span> <kbd>Alt</kbd><kbd>Shift</kbd><kbd>D</kbd></li>
</ul>
</div>
<div class="container">
<h2>Context Menu</h2>
<p>Right click a link to open it in a new window:</p>
<img src="docs/menu-link.jpg" alt="Link Menu" width="600" height="auto" />
<p>Also works on pages:</p>
<img src="docs/menu-page.jpg" alt="Page Menu" width="600" height="auto" />
</div>
<div class="container">
<h2>Key Commands</h2>
<p>The key commands can be customised by following the link on the options page.</p>
<p>The defaults are:</p>
<div class="command-sets">
<div class="key-command-set">
<h3>Mac</h3>
<ul>
<li><kbd>Alt</kbd><kbd>X</kbd> - Window</li>
<li><kbd>Alt</kbd><kbd>C</kbd> - Popup</li>
<li><kbd>Alt</kbd><kbd>Z</kbd> - Next Window</li>
<li><kbd>Alt</kbd><kbd>D</kbd> - Next Display</li>
</ul>
</div>
<div class="key-command-set">
<h3>Windows</h3>
<ul>
<li><kbd>Alt</kbd><kbd>X</kbd> - Window</li>
<li><kbd>Alt</kbd><kbd>C</kbd> - Popup</li>
<li><kbd>Alt</kbd><kbd>Z</kbd> - Next Window</li>
<li><kbd>Alt</kbd><kbd>Shift</kbd><kbd>D</kbd> - Next Display</li>
</ul>
</div>
<div class="key-command-set">
<h3>Linux</h3>
<ul>
<li><kbd>Alt</kbd><kbd>Shift</kbd><kbd>X</kbd> - Window</li>
<li><kbd>Alt</kbd><kbd>Shift</kbd><kbd>C</kbd> - Popup</li>
<li><kbd>Alt</kbd><kbd>Shift</kbd><kbd>Z</kbd> - Next Window</li>
<li><kbd>Alt</kbd><kbd>Shift</kbd><kbd>D</kbd> - Next Display</li>
</ul>
</div>
</div>
</div>
<div class="container">
<h2>Author</h2>
<p><a href="https://www.arthurcarabott.com">Arthur Carabott</a></p>
</div>
</body>
</html>