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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user