mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 01:33:32 +01:00
Fix some :buffer completion issues.
This commit is contained in:
@@ -1627,7 +1627,7 @@ var Buffer = Module("buffer", {
|
|||||||
return {
|
return {
|
||||||
text: [i + ": " + (tab.label || /*L*/"(Untitled)"), i + ": " + url],
|
text: [i + ": " + (tab.label || /*L*/"(Untitled)"), i + ": " + url],
|
||||||
tab: tab,
|
tab: tab,
|
||||||
id: i - 1,
|
id: i,
|
||||||
url: url,
|
url: url,
|
||||||
icon: tab.image || DEFAULT_FAVICON
|
icon: tab.image || DEFAULT_FAVICON
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ var Tabs = Module("tabs", {
|
|||||||
false, true);
|
false, true);
|
||||||
|
|
||||||
dactyl.commands["tabs.select"] = function (event) {
|
dactyl.commands["tabs.select"] = function (event) {
|
||||||
tabs.select(event.originalTarget.getAttribute("identifier"));
|
tabs.switchTo(event.originalTarget.getAttribute("identifier"));
|
||||||
};
|
};
|
||||||
|
|
||||||
this.tabBinding = styles.system.add("tab-binding", "chrome://browser/content/browser.xul", String.replace(<><![CDATA[
|
this.tabBinding = styles.system.add("tab-binding", "chrome://browser/content/browser.xul", String.replace(<><![CDATA[
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ var Template = Module("Template", {
|
|||||||
<> </>)
|
<> </>)
|
||||||
}) </span>
|
}) </span>
|
||||||
}
|
}
|
||||||
<a xmlns:dactyl={NS} identifier={item.id || ""} dactyl:command={item.command || ""}
|
<a xmlns:dactyl={NS} identifier={item.id == null ? "" : item.id} dactyl:command={item.command || ""}
|
||||||
href={item.item.url} highlight="URL">{text || ""}</a>
|
href={item.item.url} highlight="URL">{text || ""}</a>
|
||||||
</>,
|
</>,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user