Skip to content

Add a "Close duplicates" button to the tabs panel - #2010

Open
monofunc wants to merge 1 commit into
Igalia:mainfrom
monofunc:features/close-duplicate-tabs
Open

Add a "Close duplicates" button to the tabs panel#2010
monofunc wants to merge 1 commit into
Igalia:mainfrom
monofunc:features/close-duplicate-tabs

Conversation

@monofunc

@monofunc monofunc commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Adds "Close duplicates" button under "Select".

  • The button sits in the selection bar next to "Close all"
  • Two tabs are duplicates when they share the same URL
  • The most recently used tab of each URL is kept
  • Tabs shown in a window, tabs without a URL and WebExtension sessions are never closed

Closes #2001

Screenshots:
8c46ad367cd16c1025f38a55930098fc
7bdd5513cd9b586183bc7b80257fc1bf

* The button sits in the selection bar next to "Close all"
* Two tabs are duplicates when they share the same URL
* The most recently used tab of each URL is kept
* Tabs shown in a window, tabs without a URL and WebExtension sessions are never closed
@svillar

svillar commented Jun 9, 2026

Copy link
Copy Markdown
Member

First of all thanks for your contributions, really appreciated. Before reviewing the patch itself I wanted to ask about similar features in other browsers. I have the feeling that many options could be added there "close the last 10" "close the recent 5" etc... there are many possible combinations. I believe we should only add something like this if it's a common pattern in other browsers otherwise other users could ask for their preferred action in their workflows and we would end up with tons of buttons.

@monofunc

monofunc commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Sure:

I don't think we need right/left, it would be confusing. "Close other tabs" can be implemented (excluding active sessions).

@svillar

svillar commented Jun 9, 2026

Copy link
Copy Markdown
Member

Right, more than dups which is only implemented in Firefox, I think it makes more sense to implement "Close other"

@monofunc

Copy link
Copy Markdown
Contributor Author
8637-sadcat-ok

@monofunc

Copy link
Copy Markdown
Contributor Author

(jk, fair point, let's wait until someone besides me actually needs it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "Close duplicate tabs" button

2 participants