1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:12:28 +01:00

add count property to Command's extraInfo to specify whether the command

accepts a count/range
This commit is contained in:
Doug Kearns
2008-10-06 10:42:06 +00:00
parent e38798f66c
commit 0c03963cf9
7 changed files with 46 additions and 36 deletions

View File

@@ -345,6 +345,7 @@ liberator.Tabs = function () //{{{
},
{
bang: true,
count: true,
completer: function (filter) liberator.completion.buffer(filter)
});
@@ -385,7 +386,8 @@ liberator.Tabs = function () //{{{
{
liberator.tabs.select("-1", true);
}
});
},
{ count: true });
// TODO: "Zero count" if 0 specified as arg
liberator.commands.add(["tabn[ext]", "tn[ext]", "bn[ext]"],
@@ -423,7 +425,8 @@ liberator.Tabs = function () //{{{
{
liberator.tabs.select("+1", true);
}
});
},
{ count: true });
liberator.commands.add(["tabr[ewind]", "tabfir[st]", "br[ewind]", "bf[irst]"],
"Switch to the first tab",
@@ -457,6 +460,7 @@ liberator.Tabs = function () //{{{
},
{
bang: true,
count: true,
completer: function (filter) liberator.completion.buffer(filter)
});
@@ -528,11 +532,8 @@ liberator.Tabs = function () //{{{
liberator.commands.add(["tabde[tach]"],
"Detach current tab to its own window",
function (args, special, count) { liberator.tabs.detachTab(null); },
{
argCount: "0",
bang: true
});
function () { liberator.tabs.detachTab(null); },
{ argCount: "0" });
liberator.commands.add(["tabd[uplicate]"],
"Duplicate current tab",
@@ -552,7 +553,8 @@ liberator.Tabs = function () //{{{
},
{
argCount: "0",
bang: true
bang: true,
count: true
});
}
@@ -598,7 +600,8 @@ liberator.Tabs = function () //{{{
completions.push([url, title]);
}
return [0, completions];
}
},
count: true
});
liberator.commands.add(["undoa[ll]"],
@@ -624,7 +627,8 @@ liberator.Tabs = function () //{{{
},
{
argCount: "0",
bang: true
bang: true,
count: true
});
liberator.commands.add(["wqa[ll]", "wq", "xa[ll]"],