1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 14:27:58 +01:00

:let shows all defined (global) variables now

This commit is contained in:
Martin Stubenschrott
2007-09-27 01:54:59 +00:00
parent 79305e43fa
commit e839bdef35

View File

@@ -647,8 +647,24 @@ function Commands() //{{{
{
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;
// List all defined variables
}
var match;