select-after-closing-current icon indicating copy to clipboard operation
select-after-closing-current copied to clipboard

Feature Request : Distinct behaviour between tab close and tab pullout

Open shodanx2 opened this issue 11 months ago • 1 comments

Hi,

I like this addon for the functionality of pulling out a tab.

Example of pulling out a tab

https://github.com/jingyu9575/select-after-closing-current/assets/10621885/f2cbf3cd-2bc4-4e07-9ba8-b708e43f5fcc

As you can see in this example, I was able to pullout a random, not selected tab and leave with it. Without changing my currently selected tab in firefox.

However, in other cases, I would like "the tab to the right of the closed tab" to be selected next, instead of the last viewed tab.

Here is an example of this situation. I am closing many tabs in a row. I wish to press CTRL+W repeatedly for every tab that I no longer need.

However here is what happens

https://github.com/jingyu9575/select-after-closing-current/assets/10621885/58c71864-2b64-446f-9e2a-c8192e903128

As you can see, after closing each tab, I do not see the next tab, but the previous tab. Now if I wish to close the next tab, I need to first select the next tab and then close it.

I do not know if it is possible for the add-on to distinguish between a tab closure and a tab pullout. But I would like to have different tab closing behaviour for each !

shodanx2 avatar Mar 26 '24 04:03 shodanx2

There is a workaround but it is a bit silly. It consist to select each tab you wish to examine in the reverse order that you wish to see and close them.

demonstration

https://github.com/jingyu9575/select-after-closing-current/assets/10621885/f3d3f538-68e4-4e72-aa7e-715935c0fa59

shodanx2 avatar Mar 26 '24 04:03 shodanx2