mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:47:59 +01:00
:let shows all defined (global) variables now
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user