yguan/bookmark-tagging

Integrate with/store within Chrome's built-in bookmark system

TylerRick opened this issue · 0 comments

This is a great extension — one that I've been looking for and needing since delicious.com shut down.

But it would be nice if it were built on top of — and not separate from — the Chrome's built-in bookmark system. (https://github.com/evanshultz/neater-bookmarks, for example, integrates with built-in bookmarks.)

As one reviewer on https://chrome.google.com/webstore/detail/bookmarks-tagging/kmdepbjjhlbhohppiancfgdpkjcoajgb/reviews said:

  1. Allow us to tag bookmarks we already have. I want to add tags to the bookmarks that are in my folders, rather than use this as a completely new bookmark system. Now I have to keep track of bookmarks both in Chrome and in this extension separately.
    The only way to do this would be to open all my bookmarks and tag them individually. That's crazy.

Sure, there's an import feature, but then you have 2 duplicate data stores and the risk of adding to one and not the other.

https://github.com/akshaykumar90/savory also correctly lists this as a desirable feature:

MUST work with the existing bookmarks, so that existing features like folders, sorting, sync continues to work


Implementation ideas

Since the built-in bookmark database apparently doesn't support tags natively, might have to use a workaround but I bet it could work. Some possible solutions:

  • Consider the folder that a bookmark is stored in to be the first tag and list additional tags as #tag-1 #tag-2 in the title. Then you could actually add/edit tags using the built-in bookmarking feature. (Would probably want to parse and index the tags for fast searching; this would simply be for compatibility.)
  • Use folders for tags. Since the built-in bookmarking feature doesn't let you add a bookmark to multiple folders, this extension would be the only way to add additional tags (other than the first tag, from the first folder you add it to). The copy stored in the other folders could have a cryptic name like "(internal)" or "(link)" or "(duplicated here for tagging)" so that it would be clear if you saw it in the built-in Bookmark Manager that this was not the primary version of the bookmark which you should be editing. The duplicates would all be linked together based on the identical URL that they pointed to, and the resulting set would be the list of tags.
  • Use a single separate folder for tagging metadata. Like the previous idea but instead of littering duplicate bookmarks all over, all of the metadata related to tags would be encoded (in whatever format was deemed efficient) under a single extension-specific bookmark folder, named something like "Tag metadata" or whatnot. That folder would be managed by the extension only and would not necessarily be human editable or readable (although preferably it would be in case something went wrong and one wanted to manually extract one's data out of it).