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

The Return of the Link

This commit is contained in:
Viktor Kojouharov
2007-05-13 21:36:54 +00:00
parent 50bb6aa8f2
commit f560f7e046
2 changed files with 26 additions and 2 deletions

View File

@@ -230,6 +230,21 @@ var g_settings = [/*{{{*/
true, true,
null null
], ],
[
["showstatuslinks", "ssli"],
["showstatuslinks", "ssli"],
"Show the destination of the link under the cursor in the status bar",
"Available items:<br/>"+
"<ul><li><b>0</b>: Don't show link destination</li><li>" +
" <b>1</b>: Show the link in the status line</li><li>" +
" <b>2</b>: Show the link in the command line</li></ul>",
"number",
null,
function(value) { set_pref("showstatuslinks", value); },
function() { return get_pref("showstatuslinks"); },
1,
null
],
[ [
["showtabline", "stal"], ["showtabline", "stal"],
["showtabline", "stal"], ["showtabline", "stal"],

View File

@@ -105,11 +105,20 @@ nsBrowserStatusHandler.prototype =
setOverLink : function(link, b) setOverLink : function(link, b)
{ {
//updateStatusbar(link); var ssli = get_pref("showstatuslinks");
//vimperator.echo(link); if (link && ssli)
{
if (ssli == 1)
updateStatusbar("Link: " + link);
else if (ssli == 2)
vimperator.echo("Link: " + link);
}
if (link == "") if (link == "")
{
updateStatusbar();
showMode(); showMode();
}
}, },
setJSStatus : function(status) setJSStatus : function(status)