mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 08:35:48 +01:00
Move bookmark info before title in completions, and show for "Smart" completions.
This commit is contained in:
@@ -50,18 +50,17 @@ const Template = Module("Template", {
|
||||
|
||||
bookmarkDescription: function (item, text)
|
||||
<>
|
||||
<a xmlns:dactyl={NS} identifier={item.id} dactyl:command={item.command}
|
||||
href={item.item.url} highlight="URL">{text || ""}</a> 
|
||||
{
|
||||
!(item.extra && item.extra.length) ? "" :
|
||||
<span class="extra-info">
|
||||
<span highlight="URLExtra">
|
||||
({
|
||||
template.map(item.extra, function (e)
|
||||
<>{e[0]}: <span highlight={e[2]}>{e[1]}</span></>,
|
||||
<> </>/* Non-breaking space */)
|
||||
})
|
||||
</span>
|
||||
<> </>)
|
||||
}) </span>
|
||||
}
|
||||
<a xmlns:dactyl={NS} identifier={item.id} dactyl:command={item.command}
|
||||
href={item.item.url} highlight="URL">{text || ""}</a>
|
||||
</>,
|
||||
|
||||
filter: function (str) <span highlight="Filter">{str}</span>,
|
||||
|
||||
Reference in New Issue
Block a user