1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 18:34:12 +01:00

merge MOW improvements

This commit is contained in:
Doug Kearns
2007-10-06 13:16:01 +00:00
parent e093b81437
commit 2028ebba19
11 changed files with 305 additions and 164 deletions

View File

@@ -304,8 +304,8 @@ function Options() //{{{
this.list = function()
{
// TODO: columns like Vim?
var list = "<table style=\"white-space: nowrap;\">" +
"<tr align=\"left\" style=\"color: magenta\"><th>--- Options ---</th></tr>";
var list = ":" + vimperator.util.escapeHTML(vimperator.commandline.getCommand()) + "<br/>" +
"<table><tr align=\"left\" class=\"hl-Title\"><th>--- Options ---</th></tr>";
var name, value;
for (var i = 0; i < options.length; i++)
@@ -315,18 +315,18 @@ function Options() //{{{
if (options[i].type == "boolean")
{
name = value ? "&nbsp;&nbsp;" + name : "no" + name;
name = value ? " " + name : "no" + name;
list += "<tr><td>" + name + "</td></tr>";
}
else
{
list += "<tr><td>" + "&nbsp;&nbsp;" + name + "=" + value + "</td></tr>";
list += "<tr><td>" + " " + name + "=" + value + "</td></tr>";
}
}
list += "</table>";
vimperator.commandline.echo(list, true);
vimperator.commandline.echo(list, vimperator.commandline.HL_NORMAL, true);
}
// TODO: separate Preferences from Options? Would these utility functions