1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:17:59 +01:00

add some missing argCount specs to commands

This commit is contained in:
Doug Kearns
2008-10-06 13:07:57 +00:00
parent 6afe44a1f3
commit 413e01da41
8 changed files with 35 additions and 30 deletions

View File

@@ -677,14 +677,11 @@ liberator.Events = function () //{{{
liberator.commands.add(["delmac[ros]"],
"Delete macros",
function (args)
function (args) { liberator.events.deleteMacros(args); },
{
if (!args)
liberator.echoerr("E474: Invalid argument");
else
liberator.events.deleteMacros(args);
},
{ completer: function (filter) liberator.completion.macro(filter) });
argCount: "+", // pattern might contain whitespace
completer: function (filter) liberator.completion.macro(filter)
});
liberator.commands.add(["macros"],
"List all macros",
@@ -698,14 +695,11 @@ liberator.Events = function () //{{{
liberator.commands.add(["pl[ay]"],
"Replay a recorded macro",
function (args)
function (args) { liberator.events.playMacro(args); },
{
if (!args)
liberator.echoerr("E474: Invalid argument");
else
liberator.events.playMacro(args);
},
{ completer: function (filter) liberator.completion.macro(filter) });
argCount: "1",
completer: function (filter) liberator.completion.macro(filter)
});
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////