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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user