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

add "?" as the argCount to commands with an optional single arg

This commit is contained in:
Doug Kearns
2008-12-01 11:45:25 +00:00
parent a4361e49f8
commit ead1babb4d
6 changed files with 15 additions and 4 deletions

View File

@@ -472,6 +472,7 @@ function Tabs() //{{{
}
},
{
argCount: "?",
bang: true,
count: true,
completer: function (context) completion.buffer(context),
@@ -481,7 +482,10 @@ function Tabs() //{{{
commands.add(["buffers", "files", "ls", "tabs"],
"Show a list of all buffers",
function (args) { tabs.list(args.literalArg); },
{ literal: 0 });
{
argCount: "?",
literal: 0
});
commands.add(["quita[ll]", "qa[ll]"],
"Quit " + config.name,
@@ -608,6 +612,7 @@ function Tabs() //{{{
window.undoCloseTab(count - 1);
},
{
argCount: "?",
completer: function (context)
{
context.keys = { text: function (item) item.state.entries[0].url, description: "title" };