1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 20:44:10 +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

@@ -341,6 +341,7 @@ function Bookmarks() //{{{
liberator.echo(deletedCount + " bookmark(s) with url `" + url + "' deleted", commandline.FORCE_SINGLELINE);
},
{
argCount: "?",
completer: function completer(context) completion.bookmark(context),
literal: 0
});
@@ -660,6 +661,7 @@ function History() //{{{
}
},
{
argCount: "?",
bang: true,
completer: function completer(context)
{
@@ -712,6 +714,7 @@ function History() //{{{
}
},
{
argCount: "?",
bang: true,
completer: function completer(context)
{