Skip to content

Conversation

@santhosh-chinnasamy
Copy link
Contributor

@santhosh-chinnasamy santhosh-chinnasamy commented Oct 8, 2025

addresses #8189

  • add keyboard shortcut to clear unpinned tabs (cmd + shift + k)
  • shows a prompt before closing tabs
  • add a clear button after pinned tab section
  • add tests if possible
Screen.Recording.2025-10-12.at.9.06.31.PM.mov

@BrixsterPlanet
Copy link

BrixsterPlanet commented Oct 8, 2025

Wanted to also bring to your attention a tangent but not directly related request for a future PR; there should also be an auto close feature where tabs "decay" after a certain amount of time like they do in Arc (141 upvotes in #2326 but it seems to have been ignored or lost)

Thanks for this, BTW. This feature is super needed for Zen to have that maximum level of utility for tab wizards

@mr-cheffy
Copy link
Member

mr-cheffy commented Oct 8, 2025

I don't think this interferes with any current shortcuts, am I wrong? Also, I dont think there should be a prompt for it. I believe showing a toast saying "Tabs Cleared! to restore"

@santhosh-chinnasamy
Copy link
Contributor Author

I don't think this interferes with any current shortcuts, am I wrong?

Yes @mr-cheffy, this is not interfering with current shortcuts.

@mr-cheffy
Copy link
Member

add a clear button after pinned tab section

Really hyped about this feature, please let me know if you have any questions on how to implement this or, if you are on discord, you can create a thread in #development and I can assist there!

@santhosh-chinnasamy
Copy link
Contributor Author

Really hyped about this feature, please let me know if you have any questions on how to implement this or, if you are on discord, you can create a thread in #development and I can assist there!

Done with the implementation of close tabs button. Will add a video recording tomorrow. Meanwhile you can review the code and provide suggestions. I'll move the duplicate tab counter function to common file.

I might need help in adding tests for this feature. I'm on discord, will create a thread.

Copy link
Member

@mr-cheffy mr-cheffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really well done! Some things I would change for the perfect PR:

We also need to figure out what to do with icons only toolbar. I'd just hide it always until we find a solution to it (icon only maybe?)

@Eatham532
Copy link

We also need to figure out what to do with icons only toolbar. I'd just hide it always until we find a solution to it (icon only maybe?)

At the minimum maybe add a button to the context menu?

mr-cheffy and others added 14 commits October 12, 2025 21:01
* style: improve site popup top buttons

* feat: add filled icons for permissions

* style: align and resize items in the site popup

* feat: site popup ui improvements and more permission icons
…olders, glance, kbs, media, mods, split-view, welcome, workspaces
* New translations zen-preferences.ftl (French)

* New translations zen-preferences.ftl (Lithuanian)

* New translations zen-workspaces.ftl (Lithuanian)

* New translations zen-general.ftl (Lithuanian)
@santhosh-chinnasamy santhosh-chinnasamy changed the title feat: close all unpinned tabs feat: close all unpinned tabs in active workspace Oct 12, 2025
Copy link
Member

@mr-cheffy mr-cheffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The styling / UI is a bit off, i'll do that and merge this PR once im done with the release for this Tuesday.

@mr-cheffy
Copy link
Member

@santhosh-chinnasamy i've updated this branch with the commit that fixes tests not running correctly 👍🏽

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 28, 2025

This comment was marked as resolved.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 28, 2025
@mr-cheffy mr-cheffy merged commit c21f927 into zen-browser:dev Oct 28, 2025
@rubiin
Copy link

rubiin commented Oct 30, 2025

Excited for this.

@thibaultmol
Copy link
Contributor

(don't get me wrong, good feature, for most people, but not for me)
is there an about:config option to disable this button?

@mr-cheffy
Copy link
Member

@thibaultmol

zen.view.show-clear-tabs-button next update

@BrixsterPlanet
Copy link

Because the button is attached to .pinned-tabs-container-separator, this feature does not work if there are no pinned tabs, as the separator will then be hidden.

Referenced in #11349

@Phosphorshy
Copy link

Is it possible to have an (optional) confirmation prompt or have it listen to the "Ask before closing multiple tabs" setting, it feels a tad too easy to close all your tabs lol

(similar to how "Ask before closing multiple tabs" works for closing the browser when multiple tabs are open)
image

@12th-devs
Copy link
Contributor

Is it possible to have an (optional) confirmation prompt or have it listen to the "Ask before closing multiple tabs" setting, it feels a tad too easy to close all your tabs lol

(similar to how "Ask before closing multiple tabs" works for closing the browser when multiple tabs are open)
image

I think that is why they allow you to undo it with a key bind, and promoting the users seems much less flowy (for a lack of a better word) then just a notification telling you how to undo your actions

1 similar comment
@12th-devs
Copy link
Contributor

Is it possible to have an (optional) confirmation prompt or have it listen to the "Ask before closing multiple tabs" setting, it feels a tad too easy to close all your tabs lol

(similar to how "Ask before closing multiple tabs" works for closing the browser when multiple tabs are open)
image

I think that is why they allow you to undo it with a key bind, and promoting the users seems much less flowy (for a lack of a better word) then just a notification telling you how to undo your actions

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

Labels

Feature lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants