diff --git a/chrome/content/vimperator/settings.js b/chrome/content/vimperator/settings.js
index 5b58f3be..5ec4f60c 100644
--- a/chrome/content/vimperator/settings.js
+++ b/chrome/content/vimperator/settings.js
@@ -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:
"+
+ "
- 0: Don't show link destination
- " +
+ " 1: Show the link in the status line
- " +
+ " 2: Show the link in the command line
",
+ "number",
+ null,
+ function(value) { set_pref("showstatuslinks", value); },
+ function() { return get_pref("showstatuslinks"); },
+ 1,
+ null
+ ],
[
["showtabline", "stal"],
["showtabline", "stal"],
diff --git a/chrome/content/vimperator/vimperator.js b/chrome/content/vimperator/vimperator.js
index dad747d4..f4fc0952 100644
--- a/chrome/content/vimperator/vimperator.js
+++ b/chrome/content/vimperator/vimperator.js
@@ -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)