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:
@@ -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();
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user