mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-10 14:15:45 +01:00
Fix 'display' validation and add completion.
Also added completion and validation for 'archivefolder'.
This commit is contained in:
@@ -200,14 +200,17 @@ function Mail() //{{{
|
|||||||
////////////////////// OPTIONS /////////////////////////////////////////////////
|
////////////////////// OPTIONS /////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
// options.add(["editor"],
|
// FIXME: why does this default to "Archive", I don't have one? The default
|
||||||
// "Set the external text editor",
|
// value won't validate now. mst please fix. --djk
|
||||||
// "string", "gvim -f");
|
|
||||||
|
|
||||||
options.add(["archivefolder"],
|
options.add(["archivefolder"],
|
||||||
"Set the archive folder",
|
"Set the archive folder",
|
||||||
"string", "Archive");
|
"string", "Archive",
|
||||||
|
{
|
||||||
|
completer: function (context) [[f.prettiestName, ""] for ([,f] in Iterator(mail.getFolders()))],
|
||||||
|
validator: Option.validateCompleter
|
||||||
|
});
|
||||||
|
|
||||||
|
// TODO: generate the possible values dynamically from the menu
|
||||||
options.add(["layout"],
|
options.add(["layout"],
|
||||||
"Set the layout of the mail window",
|
"Set the layout of the mail window",
|
||||||
"string", "inherit",
|
"string", "inherit",
|
||||||
@@ -224,6 +227,12 @@ function Mail() //{{{
|
|||||||
|
|
||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
|
completer: function (context) [
|
||||||
|
["inherit", "Default View"], // FIXME: correct description?
|
||||||
|
["classic", "Classic View"],
|
||||||
|
["wide", "Wide View"],
|
||||||
|
["vertical", "Vertical View"]
|
||||||
|
],
|
||||||
validator: Option.validateCompleter
|
validator: Option.validateCompleter
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user