prevent-duplicate-tabs icon indicating copy to clipboard operation
prevent-duplicate-tabs copied to clipboard

Auto close duplicate only in certain conditions

Open achillez16 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Auto close is most useful when you open a link that you don't know has a tab already open among the 100 others. However there are times when you are just trying to diff between 2 same links etc and the user can right click a tab and select duplicate.

Describe the solution you'd like The user intent when they click duplicate is to have a duplicate tab and the extension should honor that intent. So it would be good to have an option in the settings for the user to disable auto close when clicking on duplicate tab.

Describe alternatives you've considered NA

Additional context NA

achillez16 avatar Jul 15 '23 15:07 achillez16

The new version is almost ready (I'm being very careful with the tests), your suggestion is very welcome, the initial problem with it is that the "duplicate guide" feature has no indication in the official extensions API, see:

Documentation:

  • https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/Tab
  • https://developer.chrome.com/docs/extensions/reference/tabs/#type-Tab

However I said at the beginning, I promise that I will think of a resource based on "tabs.Tab.tabId" to add the tabs in an exception, the complicated thing about this part is that there is no way to differentiate a tab coming from the "Duplicate Guide" menu ", but I will try to come up with an alternative form that serves this well.

For now what you can use, which already exists, are the resources:

  • ignore domain
  • ignore url

Before duplicating the tab, click on the extension icon and then click on the eye icon:

image

brcontainer avatar Jul 16 '23 22:07 brcontainer