mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:48:00 +01:00
add 'wildignore' option
This commit is contained in:
@@ -340,6 +340,25 @@ liberator.CommandLine = function () //{{{
|
||||
},
|
||||
});
|
||||
|
||||
liberator.options.add(["wildignore", "wig"],
|
||||
"List of file patterns to ignore when completing files",
|
||||
"stringlist", "",
|
||||
{
|
||||
validator: function (value)
|
||||
{
|
||||
// TODO: allow for escaping the ","
|
||||
try
|
||||
{
|
||||
new RegExp("^(" + value.replace(",", "|", "g") + ")$");
|
||||
return true;
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
liberator.options.add(["wildoptions", "wop"],
|
||||
"Change how command line completion is done",
|
||||
"stringlist", "",
|
||||
|
||||
Reference in New Issue
Block a user