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

After stashing a tab, set the new active tab to the tab next to the stashed one #486

Open haraguchi30 opened 5 months ago

haraguchi30 commented 5 months ago

Problem Statement

I usually have a lot of tabs opened. When I statsh a tab, the active tab is set to the latest tab I opened before the stashed one. For exemple, I open Tab A, Tab B, Tab C, Tab D. Then I open Tab E from Tab A. The displayed order of the tabs will be: Tab A - Tab E - Tab B - Tab C - Tab D. When I stash Tab E I will be moved to Tab D. When I have 50 tabs opened it can be confusing and I usually have to scroll trought the tabs to find Tab A again.

Preferred Solution(s)

What would be nice is : after I stash a tab, switch the active tab to the tab on the left of the stashed tab. Using the previous exemple the desired behaviour will be: When I stash Tab E, Tab A become the active tab.

Thank you for your work!

josh-berry commented 4 months ago

Thanks for the feature request! Right now, Tab Stash mimics Firefox's behavior on tab close, which is to select the next tab AFTER the one being closed (if one exists), or the tab BEFORE the one being closed (if the last tab is the one being closed/stashed).

Always switching to the tab before (/on the left) of the stashed tab would be inconsistent with what FIrefox does, but I'll keep this in mind as an option to be added.

haraguchi30 commented 4 months ago

Thank you. I was able to experience the right behaviour you were talking about when I switched completely to Tab Stash to navigate through my tabs. I was previoulsly mainly using Firefox's horizontal tabs. I don't know if the problem came from there but it is all good now.