Unbox icon indicating copy to clipboard operation
Unbox copied to clipboard

Respect position of new tab(s) opened via Tab Stash

Open Crunchbits opened this issue 1 year ago • 1 comments

Problem Statement

Currently opening tabs via Tab stash, the tabs are opened at the end of the current window. However, this seems to be a rule that overrides the preference of the Firefox user. For example, you can go to Firefox's built-in about:config and set TRUE to both browser.tabs.insertAfterCurrent and browser.tabs.insertRelatedAfterCurrent. This will make it so that the new tabs in Firefox are positioned after the active tab (something I have enabled and much preferred). However Tab stash does not respect these rules and just opens them at the end of the window tab list.

Preferred Solution(s)

Add an option or set the default to respect tab position rules. I've seen this as a possible option in other extensions such as when I used to use Sidebery. It was an option called "Place new tab (general rule)" and it could be set to "none" and this would respect the user's preference instead of overriding it.

Alternative Solution(s)

Add an option for 'Position of new tab(s) rules' so that you can have a list of different features. Some good options would be "None", "After Active Tab", "End of window". "Start of window". Note that "None" is still a really important option because one may already use another way to handle positions of new tabs (via built-in or other extension preferences) and may not want Tab Stash to handle the order.


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.

Crunchbits avatar Oct 23 '23 11:10 Crunchbits

So unfortunately, Firefox does not expose this preference to extensions (especially since it's a hidden internal setting), and Tab Stash therefore has no way to know what the setting is.

Also, unfortunately, Tab Stash cannot leave the ordering to the browser (like Sidebery does), because restoring a tab in Tab Stash sometimes requires re-positioning hidden tabs, so that the newly un-hidden tab shows up in the desired place (rather than whatever random position it occupied previously).

So this is not something that can be fixed, except by adding another preference to Tab Stash itself. But I'll keep this in mind for a future release!

josh-berry avatar Oct 29 '23 20:10 josh-berry