1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-26 12:05:46 +01:00

Show link target with ;;.

This commit is contained in:
Kris Maglione
2011-12-21 22:13:26 -05:00
parent 71048f0970
commit 26ea6fb190
5 changed files with 28 additions and 14 deletions

View File

@@ -180,7 +180,7 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
setOverLink: util.wrapCallback(function setOverLink(link, b) {
setOverLink.superapply(this, arguments);
dactyl.triggerObserver("browser.overLink", link);
}),
})
}
}, {
}, {
@@ -204,6 +204,7 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
function () {
window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils)
.redraw();
statusline.overLink = null;
statusline.updateStatus();
commandline.clear();
},

View File

@@ -1939,7 +1939,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
if (dactyl.commandLineOptions.rcFile == "NONE" || dactyl.commandLineOptions.noPlugins)
options["loadplugins"] = [];
if (options["loadplugins"])
if (options["loadplugins"].length)
dactyl.loadPlugins();
}
catch (e) {

View File

@@ -110,9 +110,11 @@ var StatusLine = Module("statusline", {
"browser.overLink": function (link) {
switch (options["showstatuslinks"]) {
case "status":
this.overLink = link ? _("status.link", link) : null;
this.status = link ? _("status.link", link) : buffer.uri;
break;
case "command":
this.overLink = null;
if (link)
dactyl.echo(_("status.link", link), commandline.FORCE_SINGLELINE);
else
@@ -250,7 +252,7 @@ var StatusLine = Module("statusline", {
updateStatus: function updateStatus() {
this.timeout(function () {
this.status = buffer.uri;
this.status = this.overLink || buffer.uri;
});
},