mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-01 19:32:26 +01:00
The Return of the Link
This commit is contained in:
@@ -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"],
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user