Terminal: Feature request: close tabs to the right

Created on 24 Apr 2020  路  6Comments  路  Source: microsoft/terminal

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.

Area-User Interface Easy Starter Help Wanted Issue-Task Needs-Tag-Fix Product-Terminal Resolution-Fix-Committed

Most helpful comment

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

All 6 comments

Okay yea this is a neat idea.

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

Backlinked from 1912. Thanks!

How about "Close all except for this tab"?

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

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

Handy links:

Was this page helpful?
0 / 5 - 0 ratings