1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 06:38:12 +01:00

:let shows all defined (global) variables now

This commit is contained in:
Doug Kearns
2007-09-28 13:38:24 +00:00
parent 01418fe122
commit 6b6b6c2c8b

View File

@@ -609,8 +609,24 @@ function Commands() //{{{
{ {
if (!args) if (!args)
{ {
var str = "";
for (var i in vimperator.globalVariables)
{
var value = vimperator.globalVariables[i];
if (typeof value == "number")
var prefix = "#";
else if (typeof value == "function")
var prefix = "*";
else
var prefix = "";
str += "<tr><td style=\"width: 200px;\">" + i + "</td><td>" + prefix + value + "</td>\n";
}
if (str)
vimperator.echo("<table>" + str + "</table>", true);
else
vimperator.echo("No variables found");
return; return;
// List all defined variables
} }
var match; var match;