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

Also add completion.option, just for the hell of it.

This commit is contained in:
Kris Maglione
2008-11-28 08:26:45 +00:00
parent 9415926d75
commit 0cfa5857fc
2 changed files with 17 additions and 19 deletions

View File

@@ -1338,7 +1338,14 @@ function Completion() //{{{
menuItem: function menuItem(filter) commands.get("emenu").completer(filter), // XXX
option: function option(filter) commands.get("set").completer(filter), // XXX
option: function option(context, scope)
{
context.title = ["Option"];
context.keys = { text: "names", description: "description" };
context.completions = options;
if (scope)
context.filters.push(function ({item: opt}) opt.scope & scope);
},
optionValue: function (context, name, op, curValue)
{