Drive4ik / simple-tab-groups

Create, modify and quick change tab groups. Inspired by the Tab Groups app :)
https://addons.mozilla.org/firefox/addon/simple-tab-groups/
Mozilla Public License 2.0
1.18k stars 93 forks source link

Archive Tab Groups #328

Closed GonzRon closed 5 years ago

GonzRon commented 5 years ago

Is your feature request related to a problem? Please describe. after creating too many tab groups, the list of tab groups in the regular STG dialog is too long. Some of the tab groups are only relevant to past projects. Some of them I can delete, and I have already done so. I do not want to delete some of them because I may need to refer back to some of these resources in the future.

Describe the solution you'd like I would like to shorten my tab groups list by moving older tab groups to a secondary archived tab groups list. This archived tab groups list may be accessible via a context menu or inside settings somewhere, and you can archive individual tab groups to remove them from the main list, and you can also click "make active" on a tab group in the new archived tabGroups list to move the tab group back to the main or active tab groups list.

Describe alternatives you've considered The alternative is to implement #302, which will make only parent projects or parent categories visible in the list, instead of individual tab groups, thereby shortening the list. In the case of implementing 302, I would also want to be able to archive parent tab groups as well, so the feature request to archive tab groups still stands. The point is that currently 1 tab group -> 1 window, with #302, you have 1 Container -> (many) tab groups -> 1 Window per tab group.

GonzRon commented 5 years ago

This may be possible to implement by simply archiving old tab groups to a new firefox bookmark folder, under which all the tabs in the group will be added as bookmarks to the bookmark folder. If you archive a tab group, it could be represented as new folder in bookmarks, with individual tabs added as favorites to the folder as I mentioned above.

Currently you can select all tabs in firefox and "bookmark all tabs" which allows you to specify folder. So there's currently a browser mechanism in place already to allow this new enhancement request in STG, as you can then just backup the tab group to the bookmarks subsystem.

Here's an example of current firefox bookmarks functionality:

  1. select multiple tabs in window

  2. right click -> bookmark tabs 2019-02-04_9-28-57

  3. New BookMarks dialog appears with two fields: (new) Folder Name, target: Folder. 2019-02-04_9-29-06

Example workflow With STG leveraging existing functionality:

  1. right click tab group in tab group popup list

  2. select "archive" action

  3. Tab Groups created parent folder "TabGroup Archives" in "Other Bookmarks" 2019-02-04_9-38-10

  4. New BookMark Folder is created with name --> (simple tab groups group name) inside "TabGroup Archives" root folder.

  5. all tabs in group are added as bookmarks to the bookmark folder

  6. group is removed from simple tab groups group list

  7. confirmation dialog appears with message "group successfully archived" (maybe not necessary).

To Restore Archive to New Tab Group:

  1. Navigate to "Other BookMarks" -> "TabGroup Archives" --> Archived Tab Group folder
  2. right click on bookmark folder, select "Restore STG Archived Window Group" Action
  3. Simple Tab Group creates group with name --> "BookMark Folder Name" and adds saved bookmarks to group.
Drive4ik commented 5 years ago

done)

screenshot_1 screenshot_2 screenshot_3

GonzRon commented 5 years ago

hey, this is excellent work!!! this helps very much! it is not perfect solution (like #302) , but it is damn good solution because now my group list is smaller and I have backup of older groups.

Thank you!!!!

ghost commented 5 years ago

Does this work correctly for others?

Yesterday I managed to export my "default" group, but not others. Since then, I'm unable to even update the "default" group with its new tabs - I still only see the tabs which were exported yesterday.

AndriiOmelianenko commented 2 years ago

Hey @hluposti @GonzRon @Drive4ik , is this a correct behavior?

When I'm done with the group - I'd like to keep it somewhere for the history (if I'll need it later). Archiving doesn't work for me because the archived group still stays on the list. So I thought maybe bookmarking the group and then deleting it, but deleting removes the bookmarks as well.

tnthi115 commented 10 months ago

I would also like to save history of groups that I'm done with. I would like to see the bookmarks not be deleted after exporting a tab group to bookmarks before deleting the group, or hiding archived groups in the main list as they are strangely only hidden in the "Manage groups" page.

AndriiOmelianenko commented 10 months ago

@tnthi115 I don't remember how I learned it, as I don't see any responses in here on that topic, but basically you can hide archived groups by right-clicking the cogwheel image

tnthi115 commented 10 months ago

@AndriiOmelianenko That helps a lot, thanks! I wish I had found that on my own, but I feel like that it could have been in the settings menu or more obvious somehow.