Giter Site home page Giter Site logo

Comments (12)

Lej77 avatar Lej77 commented on August 16, 2024

Tree Style Tab has its own support for bookmarking tabs with tree data since version 3.2.0. The change was introduced due to Tree Style Tab issue 1639. I wrote some about the format that it uses on the summary page of this extension and on this extension's option page.

Unfortunately while you can drag and drop the tabs from the sidebar to the bookmarks menu it won't save them with tree data. You could make this feature request directly to Tree Style Tab's author, Piroor, who is usually quite active and quick to respond to issues. He might reject the request but it could be worth a try.

Regarding implementing this feature in this extension I don't know if it is possible or how good an implementation could be. Until recently I don't think it could even be done. But Tree Style Tab v3.4.0 exposed some new addon APIs that probably could be used to implement something like this. Even so I don't think I will have the motivation or time to do it so Tree Style Tab's bookmark implementation is probably your best hope unless you want to implement it yourself.

from bookmark-tree-for-tree-style-tab.

atondwal avatar atondwal commented on August 16, 2024

Thanks for the reply!

You're totally right: now that TST has built in "bookmark tree" support, I should an issue with TST itself for the drag-and-drop.

Playing around with it, looks like it works almost perfectly with this extension. The format migration works beautifully, but I find myself having to do a bunch of migration back-and-forth if I want to next TST-saved trees and subtrees of bookmark-folder-organized tabs. Perhaps, it would be nice if we could auto-detect the style per-folder instead of for the whole tree, but I haven't thought about the full implications.

from bookmark-tree-for-tree-style-tab.

Lej77 avatar Lej77 commented on August 16, 2024

Glad that it seems to be working! I don't quite understand your current problem. Do you mean that you have a folder with bookmarks saved using the title format (TST's data format) that also contains sub-folders that are saved using the separator or folder formats? Perhaps I could have a Auto Detect Mixed format that allowed sub-folders that were using different tree data formats. Don't know how hard that would be to implement actually but it should be possible.

from bookmark-tree-for-tree-style-tab.

atondwal avatar atondwal commented on August 16, 2024

from bookmark-tree-for-tree-style-tab.

Lej77 avatar Lej77 commented on August 16, 2024

No worries about any delays! The extension can already convert title-style saved tabs to other formats. So is the problem that it doesn't work to convert multiple such folders at once? If so then do you want the converted bookmarks to be in a single folder or do you want to mirror the original folder structure?

from bookmark-tree-for-tree-style-tab.

atondwal avatar atondwal commented on August 16, 2024

from bookmark-tree-for-tree-style-tab.

Lej77 avatar Lej77 commented on August 16, 2024

So, do you have several different format mixed in a single folder like this:

Folder
\- Separator
\- Bookmark (separator format) (parent)
\- Bookmark (separator format) (child)
\- Bookmark (separator format) (child)
\- Separator
\- Separator
\- Bookmark (title format) (parent)
\- > Bookmark (title format) (child)

Or do you have a folder with sub-folders that use different tree formats:

Folder
\- Folder
    \- Separator
    \- Bookmark (separator format) (parent)
    \- Bookmark (separator format) (child)
    \- Bookmark (separator format) (child)
    \- Separator
    \- Separator
\- Folder
    \- Bookmark (title format) (parent)
    \- > Bookmark (title format) (child)

Auto Detect Mixed format as I thought of it would correctly detect the second case but not the first. I could perhaps have a Mixed format that could be used for the first case. It would accept any parent-child indicator so that a separator would increase the tree level and then > prefixes would increase it even more.

from bookmark-tree-for-tree-style-tab.

atondwal avatar atondwal commented on August 16, 2024

from bookmark-tree-for-tree-style-tab.

Lej77 avatar Lej77 commented on August 16, 2024

Ahh, okay! And you want to convert all the sub-folders at the same time, instead of converting them one by one? You also want to keep the folder structure as it is and not flatten it? Did I understand everything correctly?

from bookmark-tree-for-tree-style-tab.

Lej77 avatar Lej77 commented on August 16, 2024

I think I could solve your problem by special casing bookmark folders that only contains sub-folders and no bookmarks. If the Change Bookmark Format or Restore Tree context menu items are used on such a folder then I could just re-apply the command for each sub-folder. This should be very simple to implement but still be quite powerful to use. For Change Bookmark Format context menu item I would of course also ensure that the migrated bookmarks were created in a single folder instead of several, as would happen if the user actually used the context menu item several times.

from bookmark-tree-for-tree-style-tab.

atondwal avatar atondwal commented on August 16, 2024

Oops, thought I'd responded to this! That's not quite what I was thinking; Imagine if I had a bunch of tree saved in different formats, and I had one tree saved using the folder format. Then I can drag all these trees into the folder tree at some point, and it seems to me that the root nodes of those dragged trees should become siblings to all the other trees in that folder. Right now it seems like it works this way if both trees are saved in the folder-style, but I'd like to handle cases when I drag in a tree that's saved in a different format. Thanks!

from bookmark-tree-for-tree-style-tab.

Lej77 avatar Lej77 commented on August 16, 2024

Okay! Then I would probably need to implement some auto detection that scans each sub-folder separately, the Auto Detect Mixed format I proposed earlier. That could increase the risk of the wrong format being detected but hopefully that remains unlikely.

from bookmark-tree-for-tree-style-tab.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.