josh-berry / tab-stash

Firefox extension to save and restore tabs as bookmarks. Clear your tabs, clear your mind.
https://josh-berry.github.io/tab-stash/
Mozilla Public License 2.0
816 stars 45 forks source link

Add option to de-duplicate tab stash behavior #334

Open blueacorn opened 1 year ago

blueacorn commented 1 year ago

Problem Statement

Background: I would like to use Tab Stash as a context-switching workflow with the same regular set of Groups. Sometimes I need to mix & match tabs from different groups.

I want an option to control what happens to open tabs with existing entry in "stashed tabs" on stashing actions ("Stash this tab" / "Stash all tabs")

When I trigger an action to "Stash" one or more tabs, I want to:

  1. hide/close all tabs that already exist in a stash group, and
  2. only stash the new tabs that are open (don't exist in groups)

Preferred Solution(s)

Add new extension option:

Alternative Solution(s)

The existing Tab Stash Sidebar has some actions and "Unstashed Tabs" view that poke at this idea, but require multiple button clicks to emulate behavior. It would be great to allow users to make a choice of workflow behavior regarding duplicates as a default option.

Additional Context


Readers: If you are also interested in seeing this feature be developed, please vote for it by giving the ORIGINAL POST a thumbs-up using the :smiley: button. You are welcome to leave comments and discuss the feature request, but "Me too!" comments are not counted by the voting system.

josh-berry commented 1 year ago

Hi, thanks for the feature request!

If I understand what you're asking, it sounds like you want Tab Stash to (optionally) de-duplicate tabs across not just the same group you're stashing into, but all groups—so if a tab already exists anywhere in the stash (as opposed to the same stash you're using), you don't want it to be duplicated, you just want it to stay where it is (even if that's a different group). Did I get that right?

blueacorn commented 1 year ago

Hi Josh, yes exactly that 👍

josh-berry commented 1 year ago

Thanks for clarifying, I'll keep this in mind for a future release!

databill86 commented 1 year ago

This de-duplication feature would be very useful! Thanks

dec-mail commented 7 months ago

It seems to me, in learning & using TabStash, that TabStash is already AUTOMATICALLY de-duping Tabs globally across Groups, much like if i had enabled the 'Silently dedup' option in Onetab.

If so, this is a really bad thing to do. Deduping is a very useful option, but should be an OPTION.

Please confirm or deny.

josh-berry commented 7 months ago

It seems to me, in learning & using TabStash, that TabStash is already AUTOMATICALLY de-duping Tabs globally across Groups, much like if i had enabled the 'Silently dedup' option in Onetab.

It does not do this, no. As the issue title says, this issue is a request to add this feature as an option.

josh-berry commented 3 weeks ago

I just realized I have not mentioned this here before, but even though Tab Stash doesn't currently support de-duplication, it does support using other tools to modify the bookmarks in your stash, so feel free to use other extensions or the Firefox native UI as needed.

For example, there are extensions out there that will de-duplicate your bookmarks for you (including across all your stashes)—here's one I've used in the past that has worked well for me: https://addons.mozilla.org/en-US/firefox/addon/bookmarks-clean-up/

Hope this helps!

dec-mail commented 3 weeks ago

Hey Josh

Yes I already do (using the same very effective simple tool I have used for some years (and it keeps on working 😉)

I would have thought so anyway as far as I can tell TS is just a Container Tab of Bookmarks (but you might be able to define it more accurately), so would be included in any BM search.

The BM Deduper I refer to and recommend above is simply called 'Bookmark Dups' (to make that more explicit, the Author is Martin Väth)

But I have not looked at the one you linked to below 😉

Everything seem quite irrelevant atm. It seems most Americans don't have a clue what a absolute economic and judicial shellacking they are in for over the next 4 years (and forever).

A kingdom of serfs & enslaved ruled by a cabal of plutocrats, cronies, criminals, crooks, corrupt, incompetent.

But hey! That's just me. 😉

PS on a 'serious' TS note - does TS check for existing saved Tabs at all? Sometimes it seems like it doesn't save Tabs if they are already saved (which would be a nice feature maybe? Like a pre-dup.)

Kind regards

Don

dec-mail commented 3 weeks ago

PS your dedup app is prob 'nicer', and it has the broken link checker. And still trying to work out exactly what the merge folders does.

Mine is just simple does the job well. I find it more intuitive t6o use because of its more simple clearer UI (remember to turn on the URL display)..

don