Feature request: close tabs to the right #7636

Closed
opened 2026-01-31 01:09:12 +00:00 by claunia · 6 comments
Owner

Originally created by @Adam13531 on GitHub (Apr 24, 2020).

Description of the new feature/enhancement

Hey, I was hoping for a feature in Windows Terminal that I've seen in many browsers and text editors: being able to close all tabs to the right of the current one. Here are some examples:

Sublime:
image

Firefox:
image

Chrome:
image

ConEmu:
image

The scenario I have is that I keep long-lived tabs like build processes, servers, etc. in the leftmost positions in my terminal, then I have "temporary" tabs on the right. Every once in a while, I end up with 20+ tabs open, so I want to activate the 6th or 7th one and close all tabs to the right to get rid of all of the clutter.

Even just having a customizable keyboard shortcut would be great, but this is the kind of thing that could live in a context menu eventually (#1912).

P.S. much of this text was copy/pasted from here.

Originally created by @Adam13531 on GitHub (Apr 24, 2020). # Description of the new feature/enhancement Hey, I was hoping for a feature in Windows Terminal that I've seen in many browsers and text editors: being able to close all tabs to the right of the current one. Here are some examples: Sublime: ![image](https://user-images.githubusercontent.com/7192897/32975351-51c31100-cbbb-11e7-93dc-8b205a57f7c9.png) Firefox: ![image](https://user-images.githubusercontent.com/7192897/32975359-62468d90-cbbb-11e7-91cf-91f4545d4996.png) Chrome: ![image](https://user-images.githubusercontent.com/7192897/32975366-6fe98650-cbbb-11e7-8735-304c1f35f03a.png) ConEmu: ![image](https://user-images.githubusercontent.com/7192897/80177901-dd7ec600-85b1-11ea-97d7-5103b24bdf1d.png) The scenario I have is that I keep long-lived tabs like build processes, servers, etc. in the leftmost positions in my terminal, then I have "temporary" tabs on the right. Every once in a while, I end up with 20+ tabs open, so I want to activate the 6th or 7th one and close all tabs to the right to get rid of all of the clutter. Even just having a customizable keyboard shortcut would be great, but this is the kind of thing that could live in a context menu eventually (#1912). P.S. much of this text was copy/pasted from [here](https://github.com/Maximus5/ConEmu/issues/1321).
Author
Owner

@zadjii-msft commented on GitHub (Apr 24, 2020):

Okay yea this is a neat idea.

@zadjii-msft commented on GitHub (Apr 24, 2020): Okay yea this is a neat idea.
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 25, 2020):

Yeah, I love this. Great tag-in for the tab context menu in 1.1+

@DHowett-MSFT commented on GitHub (Apr 25, 2020): Yeah, I love this. Great tag-in for the tab context menu in 1.1+
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 25, 2020):

Backlinked from 1912. Thanks!

@DHowett-MSFT commented on GitHub (Apr 25, 2020): Backlinked from 1912. Thanks!
Author
Owner

@Chips1234 commented on GitHub (Jul 10, 2020):

How about "Close all except for this tab"?

@Chips1234 commented on GitHub (Jul 10, 2020): How about "Close all except for this tab"?
Author
Owner

@zadjii-msft commented on GitHub (Jul 10, 2020):

That certainly fits in well with this request IMO. I really like the Firefox way of doing it:
image

"Close Tab" is a top level entry, and then I imagine a "Close..." option with nested entries for:

  • Close other tabs
  • Close tabs to the right
  • Close pane
  • Close other panes in this tab
@zadjii-msft commented on GitHub (Jul 10, 2020): That certainly fits in well with this request IMO. I really like the Firefox way of doing it: ![image](https://user-images.githubusercontent.com/18356694/87152814-055dfb80-c27c-11ea-8453-9aca75fa4c3b.png) "Close Tab" is a top level entry, and then I imagine a "Close..." option with nested entries for: * Close other tabs * Close tabs to the right * Close pane * Close other panes in this tab
Author
Owner

@ghost commented on GitHub (Nov 11, 2020):

:tada:This issue was addressed in #7728, which has now been successfully released as Windows Terminal Preview v1.5.3142.0.🎉

Handy links:

@ghost commented on GitHub (Nov 11, 2020): :tada:This issue was addressed in #7728, which has now been successfully released as `Windows Terminal Preview v1.5.3142.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.5.3142.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7636