1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:02:38 +01:00

Match and highlight URL in buffer completion.

This commit is contained in:
Kris Maglione
2010-09-26 08:17:18 -04:00
parent 31453e6b2a
commit e694fa6297

View File

@@ -1325,11 +1325,12 @@ const Buffer = Module("buffer", {
<span highlight="Indicator" style="display: inline-block;">{item.item.indicator}</span>
{ next.call(this, item, text) }
</>);
context.process[1] = function (item, text) template.highlightURL(text);
context.process[1] = function (item, text) template.bookmarkDescription(item, template.highlightFilter(text, this.filter));
context.anchored = false;
context.keys = { text: "text", description: "url", icon: "icon" };
context.compare = CompletionContext.Sort.number;
context.filters = [CompletionContext.Filter.textDescription];
for (let [id, vals] in Iterator(tabGroups))
context.fork(id, 0, this, function (context, [name, browsers]) {