1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-17 16:33:30 +01:00

Move template.listCompleter to completion. Some other cleanup/fixes

This commit is contained in:
Kris Maglione
2008-11-25 19:31:51 +00:00
parent 4462bb3768
commit 48172401fa
7 changed files with 51 additions and 76 deletions

View File

@@ -719,21 +719,16 @@ function Events() //{{{
},
{
bang: true,
completer: function (context) completion.macro(context.filter),
completer: function (context) completion.macro(context),
literal: true
});
commands.add(["macros"],
"List all macros",
function (args)
function (args) { completion.listCompleter("macro", args.arguments[0]) },
{
XML.prettyPrinting = false;
var str = template.tabular(["Macro", "Keys"], [], events.getMacros(args.string));
liberator.echo(str, commandline.FORCE_MULTILINE);
},
{
completer: function (context) completion.macro(context.filter),
literal: true
argCount: "1",
completer: function (context) completion.macro(context),
});
commands.add(["pl[ay]"],
@@ -741,7 +736,7 @@ function Events() //{{{
function (args) { events.playMacro(args.arguments[0]); },
{
argCount: "1",
completer: function (context) completion.macro(context.filter)
completer: function (context) completion.macro(context)
});
/////////////////////////////////////////////////////////////////////////////}}}