mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 23:02:27 +01:00
ES6-ify some things. Still a long way to go...
This commit is contained in:
@@ -436,10 +436,9 @@ var Bookmarks = Module("bookmarks", {
|
||||
names: ["-tags", "-T"],
|
||||
description: "A comma-separated list of tags",
|
||||
completer: function tags(context) {
|
||||
context.generate = () => Ary(b.tags
|
||||
for (b of bookmarkcache)
|
||||
if (b.tags))
|
||||
.flatten().uniq().array;
|
||||
context.generate = () => new RealSet(Array.from(bookmarkcache)
|
||||
.flatMap(b.tags));
|
||||
|
||||
context.keys = { text: identity, description: identity };
|
||||
},
|
||||
type: CommandOption.LIST
|
||||
|
||||
Reference in New Issue
Block a user