1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:17:59 +01:00

Favicon support in :bmarks/:history and :ls and fixed very slow vimperator loading with a large history by NOT loading all favicons at startup.

Also fixed :restart by accident showhow.
This commit is contained in:
Martin Stubenschrott
2008-11-02 04:49:37 +00:00
parent b334f2538d
commit 70ea0eb34e
6 changed files with 70 additions and 60 deletions

View File

@@ -735,32 +735,9 @@ function Tabs() //{{{
return getBrowser().mTabContainer.selectedItem;
},
// TODO: shouldn't that have a filter argument?
list: function ()
list: function (filter)
{
// TODO: move this to tabs.get()
let items = <table/>
for (let [i, item] in Iterator(completion.buffer("")[1]))
{
if (i == tabs.index())
indicator = "%"
else if (i == tabs.index(tabs.alternate))
indicator = "#";
else
indicator = " ";
let [number, title] = item[0].split(/:\s+/, 2);
items.* +=
<tr>
<td align="right"> {number}</td>
<td><span class="hl-Indicator"> {indicator} </span></td>
<td style="width: 250px; max-width: 500px; overflow: hidden">{title}</td>
<td><a href="#" class="hl-URL buffer-list">{item[1]}</a></td>
</tr>;
}
let list = template.generic(items);
let list = template.generic(completion.buffer(filter)[2]);
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
},