Lej77 / bookmark-tree-for-tree-style-tab

9 stars 2 forks source link

Interested in supporting workspaces as an additional feature? #13

Open renyuneyun opened 6 months ago

renyuneyun commented 6 months ago

Hi. A few weeks ago I created this discussion on TST's repo. Basically, it is about supporting a "workspace" feature utilizing the bookmarking loading/saving features. In short, in this view, a workspace is an automatically synced bookmark folder (between opened tabs and bookmark), maybe with its own name.

Do you have any interest in adding this feature? It may be a very nice addition for a general extension which manipulates the tree-style-tab-aware bookmark (that not only supports TST).

My quick attempt (in implementing from scratch) found that the ability to save tree-style-aware bookmarks is a missing API for TST. So this project may be a good starting point, as it already has most parts.

Lej77 commented 6 months ago

I don't have much time over to work on this extension anymore so its unlikely that I will implement such a large feature myself. It is something that I find interesting however and the initial way I saved tree data using bookmark folders would make it easy to move trees of tabs around (since we could easily move a whole bookmark folder).

If you wanted to make your own addon and are just missing the ability to create TST bookmarks then you could look at src/background/tree-info-node.js, it should have everything that is needed to convert from bookmarks to tabs and vice versa. You can see how it is used by this addon in the beginning of src/background/background.js.