1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-27 02:55:46 +01:00

Better option completion/validation.

This commit is contained in:
Kris Maglione
2008-11-28 04:28:38 +00:00
parent 49d331f811
commit 2ef031c756
10 changed files with 39 additions and 61 deletions

View File

@@ -48,16 +48,8 @@ function AutoCommands() //{{{
"List of autocommand event names which should be ignored",
"stringlist", "",
{
completer: function (value) config.autocommands.concat([["all", "All events"]]),
validator: function (value)
{
let values = value.split(",");
let events = config.autocommands.map(function (event) event[0]);
events.push("all");
return values.every(function (event) events.indexOf(event) >= 0);
}
completer: function () config.autocommands.concat([["all", "All events"]]),
validator: options.validateCompleter
});
options.add(["focuscontent", "fc"],