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

move some completion code to completion.js

This commit is contained in:
Doug Kearns
2008-10-07 15:32:48 +00:00
parent d0a7df74bc
commit 01e89bc6d8
8 changed files with 329 additions and 320 deletions

View File

@@ -380,10 +380,10 @@ liberator.Buffer = function () //{{{
"number", 1,
{
completer: function (filter) [0, [
["0", "Don't show link destination"],
["1", "Show the link in the status line"],
["2", "Show the link in the command line"]
]],
["0", "Don't show link destination"],
["1", "Show the link in the status line"],
["2", "Show the link in the command line"]
]],
validator: function (value) value >= 0 && value <= 2
});
@@ -805,6 +805,7 @@ liberator.Buffer = function () //{{{
liberator.buffer.highlight(key, css, special);
},
{
// TODO: add this as a standard highlight completion function?
completer: function (filter) [0, liberator.completion.filter([[v, ""] for ([k, v] in Iterator(highlightClasses))], filter)],
hereDoc: true,
bang: true,