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
807 stars 45 forks source link

Automate tab stashing/unstashing #535

Closed hexagonelle closed 1 month ago

hexagonelle commented 2 months ago

Problem Statement

Suppose I have a window open with some tabs. Then I stash all the tabs in that window to a new group, while keeping the tabs open. If I open some new tabs in that window, I can choose to stash all tabs of the window to the group, and it will automatically remove duplicates. This basically has the effect of only adding new tabs to the group. Nice!

But now, suppose I close some tabs in that window. There's not a one-button solution to cull the closed tabs from the stash - I have to go through the stash, remember which tabs I closed, and manually remove each of them from the stash. When I'm working quickly on lots of things, doing that manually gets overwhelming fast.

Preferred Solution(s)

It'd be great if there was an option to "sync" the open window with a stash: that way, exactly the set of tabs I have open in that window completely overwrites the tabs in the chosen stash. (I guess coding-wise, you'd look for differences? i.e. what tabs are added/removed in the window compared to the stash)

Additionally - though this sounds harder - it'd be great to "pair" an open window with a stash, so that any changes to tabs in that window are automatically mirrored to the stash. Not sure if that would be unwisely resource intensive, though.

Alternative Solution(s)

None that I can think of, though I am open to alternative suggestions.

Additional Context

No response

Vote for This Issue

josh-berry commented 2 months ago

Thanks, I think this is similar to a couple other feature requests that are already open:

42, in particular, seems very close to what you're asking for—a one button "replace the contents of the stash with the current set of open tabs". Would you agree?

hexagonelle commented 1 month ago

Oh yes, that sounds like just what I was looking for! Apologies for the duplicate post.

josh-berry commented 1 month ago

No problem at all! GitHub can be hard to search so I completely understand missing those. I just happened to remember seeing them before so I knew what to look for. :) I'll close this as a duplicate, but thanks again for the feature requests!