mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 18:24:11 +01:00
Match and highlight URL in buffer completion.
This commit is contained in:
@@ -1325,11 +1325,12 @@ const Buffer = Module("buffer", {
|
|||||||
<span highlight="Indicator" style="display: inline-block;">{item.item.indicator}</span>
|
<span highlight="Indicator" style="display: inline-block;">{item.item.indicator}</span>
|
||||||
{ next.call(this, item, text) }
|
{ 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.anchored = false;
|
||||||
context.keys = { text: "text", description: "url", icon: "icon" };
|
context.keys = { text: "text", description: "url", icon: "icon" };
|
||||||
context.compare = CompletionContext.Sort.number;
|
context.compare = CompletionContext.Sort.number;
|
||||||
|
context.filters = [CompletionContext.Filter.textDescription];
|
||||||
|
|
||||||
for (let [id, vals] in Iterator(tabGroups))
|
for (let [id, vals] in Iterator(tabGroups))
|
||||||
context.fork(id, 0, this, function (context, [name, browsers]) {
|
context.fork(id, 0, this, function (context, [name, browsers]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user