1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 22:25:47 +01:00

Poke :downloads a bit. Add -sort flag, downloadsort option, :dlclear command. Closes issue #386.

--HG--
extra : rebase_source : 1ce7621d39e91f2779d1827975b44f00c7a1d00b
This commit is contained in:
Kris Maglione
2011-04-28 16:55:55 -04:00
parent 6ed4005e85
commit a5e4a50569
9 changed files with 187 additions and 21 deletions

View File

@@ -1439,6 +1439,14 @@ var Options = Module("options", {
context.filters.push(function (i) curValues.indexOf(i.text) == -1);
if (op == "-")
context.filters.push(function (i) curValues.indexOf(i.text) > -1);
memoize(extra, "values", function () {
if (op == "+")
return curValues.concat(newValues);
if (op == "-")
return curValues.filter(function (v) newValues.indexOf(val) == -1);
return newValues;
});
}
let res = completer.call(opt, context, extra);