1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:02:27 +01:00

More completion stuff.

This commit is contained in:
Kris Maglione
2008-11-23 23:40:40 +00:00
parent fef1cecb75
commit 7d8eb88954
15 changed files with 136 additions and 110 deletions

View File

@@ -426,7 +426,7 @@ liberator.registerObserver("load_commands", function ()
}
},
{
argCount: "2",
argCount: 2,
bang: true,
completer: function (context, args, bang) {
let compl = [];
@@ -463,7 +463,7 @@ liberator.registerObserver("load_commands", function ()
styles.removeSheet(args["-name"], args.arguments[0], args.literalArg, args["-index"], false);
},
{
argCount: "2",
argCount: 2,
// FIXME: Ugly.
completer: function (context) [0, completion.filter(
[[i, <>{s.sites.join(",")}: {s.css.replace("\n", "\\n")}</>]
@@ -507,7 +507,7 @@ liberator.registerObserver("load_commands", function ()
liberator.echoerr(error);
},
{
argCount: "2",
argCount: 2,
bang: true,
// TODO: add this as a standard highlight completion function?
completer: function (context) [0,