Giter Site home page Giter Site logo

Comments (7)

mareq avatar mareq commented on August 16, 2024

Btw: if pointed the right way, I am happy to create some pull requests - never done FF plugin development and not really JS expert (not a complete newbie neither, though), but I am C++ programmer by trade, so hopefully I will be able to catch up...

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

Lej77 avatar Lej77 commented on August 16, 2024

@mareq Your suggestions seem reasonable and I have also thought of using bookmarks as some kind of session manager replacement. Bookmarks seems a good fit for Tree Style Tab since they are already stored in a tree format and they are also synced between devices which means that it would be an easy way to browse through trees in a mobile browser. The bookmarks permission is also optional so that means that the required permissions don't need to be changed to implement the functionality. (Edit: actually this extension already has permission to use bookmarks so wee don't need to change them at all.)

So I will try to work on this when I get the time! Of course any pull requests would be welcome if you want to attempt that. To start coding you just download the extension code and then you can load it in Firefox immediately by going to the url about:debugging#addons and load it as a temporary addon (it will be unloaded when Firefox is restarted). When you press the load temporary extension button you will get a file prompt and then you just select the manifest file for the extension. The WebExtensions API has a really nice reference at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions#Reference. My code might not be as clear though but hopefully it is understandable.

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

Lej77 avatar Lej77 commented on August 16, 2024

@mareq Just looked at the Multiple Tab Handler context menu item and that seems to have broken since I last used it. I'll try to fix that as soon as I can.

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

Lej77 avatar Lej77 commented on August 16, 2024

I have uploaded a new version of this extension (v2.5) that fixes the issue with selecting multiple tabs. I decided to not use a special context menu item for multiple selected tabs. Instead you click on the normal context menu item and if multiple tabs are selected then that will be detected automatically.

I would have needed to do this anyway since it looks like the fake context menu for TST and MTH will be deprecated in Firefox 64 in favor of a more integrated context menu that uses the same items as the ones on Firefox tab bar.

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

Kenqr avatar Kenqr commented on August 16, 2024

About accessing the bookmarks, I have another different idea.
Instead of using the bookmark folder directly, accessing them through a custom interface looks better to me.
Add a toolbar button, which when clicked, opens a new tab or show a popup listing all trees bookmarked by this extension. Click on a tree will restore it.
Can also add some other functionalities (Delete, rename, drag&drop to reorder etc.).

Tree name Restore & Delete Delete Rename
My Tree 1 Restore & Delete Delete Rename
My Tree 2 Restore & Delete Delete Rename

Another simpler approach is to add a new context menu item in TST sidebar called Restore tree, which lists all bookmarked trees as children of it.

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

Lej77 avatar Lej77 commented on August 16, 2024

@Kenqr I have considered making a special page that could be opened in another tab but it seems like a lot of work and the current solution works well enough for me. The context menu approach seems interesting and should be a lot easier so I might look into that if I get the time.

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

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.

This should allow you to choose the save location of your bookmarks while still keeping their tree data. I have also release a new version of this extension (v4.0) which can restore and save bookmarks with the same format as Tree Style Tab (you will need to change some settings on the option's page to make this work). This extension can also migrate tree data to Tree Style Tab's format via a context menu item for bookmarks (this is mentioned on the extensions summary page).

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

Related Issues (8)

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.