1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 16:04:12 +01:00

Add the values into 'activate' option.

This commit is contained in:
anekos
2009-11-18 21:39:39 +09:00
parent e9a66bcaed
commit db1fb981cc
3 changed files with 11 additions and 4 deletions

View File

@@ -203,8 +203,7 @@ const Browser = Module("browser", {
"Show progress of current downloads",
function () {
liberator.open("chrome://mozapps/content/downloads/downloads.xul",
options.get("newtab").has("all", "downloads")
? liberator.NEW_TAB : liberator.CURRENT_TAB);
{ from: "downloads"});
},
{ argCount: "0" });

View File

@@ -1060,9 +1060,13 @@ const Tabs = Module("tabs", {
if (config.hasTabbrowser) {
options.add(["activate", "act"],
"Define when tabs are automatically activated",
"stringlist", "homepage,quickmark,tabopen,paste",
"stringlist", "addons,downloads,extoptions,help,homepage,quickmark,tabopen,paste",
{
completer: function (context) [
["addons", ":addo[ns] command"],
["downloads", ":downl[oads] command"],
["extoptions", ":exto[ptions] command"],
["help", ":h[elp] command"],
["homepage", "gH mapping"],
["quickmark", "go and gn mappings"],
["tabopen", ":tabopen[!] command"],

View File

@@ -275,11 +275,15 @@
<tags>'act' 'activate'</tags>
<spec>'activate' 'act'</spec>
<type>stringlist</type>
<default>homepage,quickmark,tabopen,paste</default>
<default>addons,downloads,extensions,help,homepage,quickmark,tabopen,paste</default>
<description>
<p>Define when tabs are automatically activated. Available items:</p>
<dl>
<dt>addons</dt> <dd><ex>:addo[ns]</ex> command</dd>
<dt>downloads</dt> <dd><ex>:downl[oads]</ex> command</dd>
<dt>extoptions</dt> <dd><ex>:exto[ptions]</ex> command</dd>
<dt>help</dt> <dd><ex>:h[elp]</ex> command</dd>
<dt>homepage</dt> <dd><k>gH</k> mapping</dd>
<dt>quickmark</dt> <dd><k>go</k> and <k>gn</k> mappings</dd>
<dt>tabopen</dt> <dd><ex>:tabopen[!]</ex> command</dd>