4
4
// - advanced: advanced commands are not shown in the help dialog by default.
5
5
// - background: whether this command has to be run by the background page.
6
6
// - desc: shown in the help dialog and command listing page.
7
+ // - details: extra help information that will only be shown on the command listing page.
7
8
// - group: commands are displayed in groups in the help dialog and command listing.
8
9
// - noRepeat: whether this command can be used with a count key prefix.
9
10
// - repeatLimit: the number of allowed repetitions of this command before the user is prompted for
@@ -118,6 +119,10 @@ const allCommands = [
118
119
desc : "Open the clipboard's URL in a new tab" ,
119
120
group : "navigation" ,
120
121
noRepeat : true ,
122
+ options : {
123
+ position : "Where to place the tab in the tab bar. " +
124
+ "One of `start`, `before`, `after`, `end`. `after` is the default." ,
125
+ } ,
121
126
} ,
122
127
123
128
{
@@ -159,6 +164,9 @@ const allCommands = [
159
164
{
160
165
name : "passNextKey" ,
161
166
desc : "Pass the next key to the page" ,
167
+ options : {
168
+ normal : "Optional. Enter Vimium's normal mode, and ignore any defined pass keys." ,
169
+ } ,
162
170
group : "navigation" ,
163
171
advanced : true ,
164
172
} ,
@@ -173,9 +181,8 @@ const allCommands = [
173
181
name : "LinkHints.activateMode" ,
174
182
desc : "Open a link in the current tab" ,
175
183
options : {
176
- action : "<code>action</code>: one of <code>hover</code>, <code>focus</code>, " +
177
- "<code>copy-text</code>. When a link is selected, instead of clicking on the link, " +
178
- "perform the specified action." ,
184
+ action : "one of `hover`, `focus`, `copy-text`. When a link is selected, " +
185
+ "instead of clicking on the link, perform the specified action." ,
179
186
} ,
180
187
group : "navigation" ,
181
188
advanced : true ,
@@ -256,14 +263,27 @@ const allCommands = [
256
263
{
257
264
name : "Marks.activateCreateMode" ,
258
265
desc : "Create a new mark" ,
266
+ details : "Do this by typing the key bound to this command, and then a letter. " +
267
+ "This will set a mark bound to that letter. Lowercase letters are local marks and uppercase " +
268
+ "letters are global marks." ,
269
+ options : {
270
+ swap : "Swap global and local marks. This option exists because in a browser, global marks " +
271
+ "are generally more useful than local marks, and so it may be desirable to make lowercase " +
272
+ "letters represent global marks rather than local marks." ,
273
+ } ,
259
274
group : "navigation" ,
260
275
advanced : true ,
261
276
noRepeat : true ,
262
277
} ,
263
278
264
279
{
265
280
name : "Marks.activateGotoMode" ,
266
- desc : "go to a mark" ,
281
+ desc : "Jump to a mark" ,
282
+ options : {
283
+ swap : "Swap global and local marks. This option exists because in a browser, global marks " +
284
+ "are generally more useful than local marks, and so it may be desirable to make lowercase " +
285
+ "letters represent global marks rather than local marks." ,
286
+ } ,
267
287
group : "navigation" ,
268
288
advanced : true ,
269
289
noRepeat : true ,
@@ -276,6 +296,11 @@ const allCommands = [
276
296
{
277
297
name : "Vomnibar.activate" ,
278
298
desc : "Open URL, bookmark or history entry" ,
299
+ options : {
300
+ query : "The text to prefill the Vomnibar with." ,
301
+ keyword : 'The keyword of a search engine defined in the "Custom search engines" ' +
302
+ "section of the Vimium Options page. The Vomnibar will be scoped to use that search engine." ,
303
+ } ,
279
304
group : "vomnibar" ,
280
305
topFrame : true ,
281
306
} ,
@@ -284,20 +309,31 @@ const allCommands = [
284
309
name : "Vomnibar.activateInNewTab" ,
285
310
desc : "Open URL, bookmark or history entry in a new tab" ,
286
311
group : "vomnibar" ,
312
+ options : {
313
+ query : "The text to prefill the Vomnibar with." ,
314
+ keyword : 'The keyword of a search engine defined in the "Custom search engines" ' +
315
+ "section of the Vimium Options page. The Vomnibar will be scoped to use that search engine." ,
316
+ } ,
287
317
topFrame : true ,
288
318
} ,
289
319
290
320
{
291
321
name : "Vomnibar.activateBookmarks" ,
292
322
desc : "Open a bookmark" ,
293
323
group : "vomnibar" ,
324
+ options : {
325
+ query : "The text to prefill the Vomnibar with." ,
326
+ } ,
294
327
topFrame : true ,
295
328
} ,
296
329
297
330
{
298
331
name : "Vomnibar.activateBookmarksInNewTab" ,
299
332
desc : "Open a bookmark in a new tab" ,
300
333
group : "vomnibar" ,
334
+ options : {
335
+ query : "The text to prefill the Vomnibar with." ,
336
+ } ,
301
337
topFrame : true ,
302
338
} ,
303
339
@@ -382,6 +418,14 @@ const allCommands = [
382
418
{
383
419
name : "createTab" ,
384
420
desc : "Create new tab" ,
421
+ options : {
422
+ "(any url)" : "Open this URL, rather than the browser's new tab page. " +
423
+ "E.g.: `map X createTab https://example.com`" ,
424
+ window : "Create the tab in a new window" ,
425
+ incognito : "Create the tab in an incognito window" ,
426
+ position : "Where to place the tab in the tab bar. " +
427
+ "One of `start`, `before`, `after`, `end`. `after` is the default." ,
428
+ } ,
385
429
group : "tabs" ,
386
430
background : true ,
387
431
repeatLimit : 20 ,
@@ -440,6 +484,10 @@ const allCommands = [
440
484
{
441
485
name : "toggleMuteTab" ,
442
486
desc : "Mute or unmute current tab" ,
487
+ options : {
488
+ all : "Mute all tabs." ,
489
+ other : "Mute every tab except the current one." ,
490
+ } ,
443
491
group : "tabs" ,
444
492
background : true ,
445
493
noRepeat : true ,
@@ -518,6 +566,9 @@ const allCommands = [
518
566
group : "tabs" ,
519
567
advanced : true ,
520
568
background : true ,
569
+ options : {
570
+ level : "The zoom level. This can be a range of [0.25, 5.0]. 1.0 is the default." ,
571
+ } ,
521
572
} ,
522
573
523
574
{
0 commit comments