1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 03:42:26 +01:00

pass all command actions an args object - IMPORTANT: this will possibly break

your plugin, read the NEWS file
This commit is contained in:
Doug Kearns
2008-10-17 11:39:25 +00:00
parent dba3870773
commit bec8d33e59
15 changed files with 95 additions and 29 deletions

View File

@@ -122,7 +122,7 @@ function AutoCommands() //{{{
"Apply the autocommands matching the specified URL pattern to all buffers",
function (args)
{
commands.get("doautocmd").action.call(this, args);
commands.get("doautocmd").action.call(this, args.string);
},
{
argCount: "+",
@@ -696,6 +696,8 @@ function Events() //{{{
"Delete macros",
function (args, special)
{
args = args.string;
if (special)
args = ".*"; // XXX
@@ -711,7 +713,7 @@ function Events() //{{{
function (args)
{
XML.prettyPrinting = false;
var str = template.tabular(["Macro", "Keys"], [], events.getMacros(args));
var str = template.tabular(["Macro", "Keys"], [], events.getMacros(args.string));
liberator.echo(str, commandline.FORCE_MULTILINE);
},
{ completer: function (filter) completion.macro(filter) });