mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 08:15:48 +01:00
The Return of the Link
This commit is contained in:
@@ -230,6 +230,21 @@ var g_settings = [/*{{{*/
|
||||
true,
|
||||
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"],
|
||||
|
||||
@@ -105,11 +105,20 @@ nsBrowserStatusHandler.prototype =
|
||||
|
||||
setOverLink : function(link, b)
|
||||
{
|
||||
//updateStatusbar(link);
|
||||
//vimperator.echo(link);
|
||||
var ssli = get_pref("showstatuslinks");
|
||||
if (link && ssli)
|
||||
{
|
||||
if (ssli == 1)
|
||||
updateStatusbar("Link: " + link);
|
||||
else if (ssli == 2)
|
||||
vimperator.echo("Link: " + link);
|
||||
}
|
||||
|
||||
if (link == "")
|
||||
{
|
||||
updateStatusbar();
|
||||
showMode();
|
||||
}
|
||||
|
||||
},
|
||||
setJSStatus : function(status)
|
||||
|
||||
Reference in New Issue
Block a user