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

added :set layout option

This commit is contained in:
Martin Stubenschrott
2008-03-05 14:14:05 +00:00
parent 72f274c7c6
commit bd211940fc
2 changed files with 17 additions and 43 deletions

View File

@@ -97,9 +97,23 @@ vimperator.Mail = function ()
// vimperator.options.add(["editor"],
// "Set the external text editor",
// "string", "gvim -f");
// vimperator.options.add(["insertmode", "im"],
// "Use Insert mode as the default for text areas",
// "boolean", true);
vimperator.options.add(["layout"],
"Set the layout of the mail window",
"string", "inherit",
{
validator: function (value) { return /^(classic|wide|vertical|inherit)$/.test(value); },
setter: function (value)
{
switch (value)
{
case "classic": ChangeMailLayout(0); break;
case "wide": ChangeMailLayout(1); break;
case "vertical": ChangeMailLayout(2); break;
// case "inherit" just does nothing
}
}
});
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// MAPPINGS ////////////////////////////////////////////////