mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-31 18:05:46 +01:00
Move bookmark info before title in completions, and show for "Smart" completions.
This commit is contained in:
@@ -56,6 +56,14 @@ const BookmarkCache = Module("BookmarkCache", XPCOM(Ci.nsINavBookmarkObserver),
|
||||
return Bookmark(node.uri, node.title, node.icon && node.icon.spec, post, keyword, tags, node.itemId);
|
||||
},
|
||||
|
||||
get: function (url) {
|
||||
let ids = bookmarks.getBookmarkIdsForURI(util.newURI(url));
|
||||
for (let id in values(ids))
|
||||
if (id in this.bookmarks)
|
||||
return this.bookmarks[id];
|
||||
return null;
|
||||
},
|
||||
|
||||
readBookmark: function readBookmark(id) {
|
||||
return {
|
||||
itemId: id,
|
||||
|
||||
Reference in New Issue
Block a user