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

More completion stuff.

This commit is contained in:
Kris Maglione
2008-11-22 06:53:44 +00:00
parent 4f1c195aa4
commit fcc799aa6a
12 changed files with 292 additions and 266 deletions

View File

@@ -240,10 +240,10 @@ function Bookmarks() //{{{
"Set the default search engine",
"string", "google",
{
completer: function (filter) completion.url("", "s")[1],
completer: function (filter) completion._url(filter, "s").items,
validator: function (value)
{
return completion.url("", "s")[1].some(function (s) s[0] == value);
return completion._url("", "s").items.some(function (s) s[0] == value);
}
});
@@ -350,7 +350,6 @@ function Bookmarks() //{{{
{
if (bypassCache) // Is this really necessary anymore?
cache.load();
return completion.cached("bookmarks", filter, function () cache.bookmarks, "filterURLArray", tags);
},