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

More completion stuff

This commit is contained in:
Kris Maglione
2008-11-22 23:42:59 +00:00
parent d3449c2f50
commit 77dca6413f
5 changed files with 82 additions and 70 deletions

View File

@@ -1362,22 +1362,23 @@ function ItemList(id) //{{{
}
let xml = <div class="ex-command-output hl-Normal" style="white-space: nowrap">
<div class="hl-Completions">
{
items.allItems.items.length == 0 &&
<div class="hl-Completions">
items.allItems.items.length == 0 ?
<span class="hl-Title">No Completions</span>
</div> || <></>
: <></>
}
{
template.map(items.contextList, function (context) context.hasItems &&
<div class="hl-Completions">
template.map(items.contextList, function (context) context.hasItems ?
<>
{ context.createRow(context, context.title || {}, "hl-CompTitle") }
{
template.map(range(context), function (i) context.createRow(context, context.items[i]))
}
</div>
|| undefined)
</>
: undefined)
}
</div>
<div class="hl-Completions">
{
// Hmm. The problem with not making this a CompItem is that