mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 09:32:28 +01:00
Move completion indicators to CSS class. Provide current/default :sty/:hi CSS completions. Et cetera.
This commit is contained in:
@@ -48,10 +48,10 @@ const template = {
|
||||
var desc = this.process[1].call(this, item, this.getKey(item, "description"));
|
||||
}
|
||||
|
||||
return <ul class={class || "hl-CompItem"}>
|
||||
<li class="hl-CompResult">{text}</li>
|
||||
<li class="hl-CompDesc">{desc}</li>
|
||||
</ul>;
|
||||
return <div class={class || "hl-CompItem"}>
|
||||
<li class="hl-CompResult">{text} </li>
|
||||
<li class="hl-CompDesc">{desc} </li>
|
||||
</div>;
|
||||
},
|
||||
|
||||
bookmarkDescription: function (item, text)
|
||||
@@ -147,7 +147,7 @@ const template = {
|
||||
{
|
||||
return this.highlightSubstrings(str, (function ()
|
||||
{
|
||||
while (res = re.exec(str) && res[0].length)
|
||||
while ((res = re.exec(str)) && res[0].length)
|
||||
yield [res.index, res[0].length];
|
||||
})(), highlight || template.filter);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user