mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
add 'wildoptions' completion
This commit is contained in:
@@ -715,6 +715,10 @@ liberator.Options = function () //{{{
|
||||
continue;
|
||||
if (option.hasName(filter))
|
||||
{
|
||||
// TODO: the starting value should be the current
|
||||
// value, for compatibility with Vim (also the most
|
||||
// useful approach in this case) while still
|
||||
// offering much better completion
|
||||
if (option.completer)
|
||||
return [filter.length + 1, option.completer(filter)]; // FIXME: filter should be component after "option="
|
||||
return [filter.length + 1, [[option.value + "", ""]]];
|
||||
|
||||
Reference in New Issue
Block a user