mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 14:25:45 +01:00
Fix Bookmark Tag Completion
This change fixes Issue #122: Autocompleting Bookmark Tags Broken. Correct building a set of tags from the bookmark cache by fixing the corresponding flatMap parameters.
This commit is contained in:
@@ -437,7 +437,7 @@ var Bookmarks = Module("bookmarks", {
|
|||||||
description: "A comma-separated list of tags",
|
description: "A comma-separated list of tags",
|
||||||
completer: function tags(context) {
|
completer: function tags(context) {
|
||||||
context.generate = () => new RealSet(Array.from(bookmarkcache)
|
context.generate = () => new RealSet(Array.from(bookmarkcache)
|
||||||
.flatMap(b.tags));
|
.flatMap(b => b.tags));
|
||||||
|
|
||||||
context.keys = { text: identity, description: identity };
|
context.keys = { text: identity, description: identity };
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user