[Feature] Option to Move/Remove the 'Close Tab' icon/btn. #20721

Closed
opened 2026-01-31 07:22:11 +00:00 by claunia · 4 comments
Owner

Originally created by @nawlbergs on GitHub (Oct 23, 2023).

Description of the new feature/enhancement

I find that I am often accidentally closing my terminal tabs.
This issue is worsened by the fact that I will often rename my tabs by the command that was run... eg: dcu. which is very short... and makes the click area to switch to the tab extremely small...

Option to either:

  • remove the Close icon from all the tabs ( you can still right click etc)
  • move the Close to a different location (maybe floating top/right of actual terminal area)
  • make a min-width for tabs (might help issue)

Proposed technical implementation details (optional)

Less accidental closing of tabs.

Originally created by @nawlbergs on GitHub (Oct 23, 2023). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement I find that I am often accidentally closing my terminal tabs. This issue is worsened by the fact that I will often rename my tabs by the command that was run... eg: `dcu`. which is very short... and makes the click area to switch to the tab extremely small... Option to either: - remove the Close icon from all the tabs ( you can still right click etc) - move the Close to a different location (maybe floating top/right of actual terminal area) - make a min-width for tabs (might help issue) <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) Less accidental closing of tabs. <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 07:22:11 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Oct 23, 2023):

remove the Close icon from all the tabs ( you can still right click etc)

You can totally do that today! You can already hide the close button on the tabs in the theme settings. Something like:

{
    "name": "Dark (no close button)",
    "tab": 
    {
        "background": "terminalBackground",
        "showCloseButton": "never",
        "unfocusedBackground": "#00000000"
    },
    "tabRow": 
    {
        "background": null,
        "unfocusedBackground": "#333333FF"
    },
    "window": 
    {
        "applicationTheme": "dark",
        "useMica": false
    }
}

make a min-width for tabs (might help issue)

Well, there is already "tabWidthMode": "equal" which does give them a min width.


There's also "read-only mode". Then, of course, there's #6549

I think that about covers this problem space?

@zadjii-msft commented on GitHub (Oct 23, 2023): > remove the Close icon from all the tabs ( you can still right click etc) You can totally do that today! You can already [hide the close button on the tabs](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/themes#show-close-button) in the theme settings. Something like: ```jsonc { "name": "Dark (no close button)", "tab": { "background": "terminalBackground", "showCloseButton": "never", "unfocusedBackground": "#00000000" }, "tabRow": { "background": null, "unfocusedBackground": "#333333FF" }, "window": { "applicationTheme": "dark", "useMica": false } } ``` --- > make a min-width for tabs (might help issue) Well, there is already [`"tabWidthMode": "equal"`](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/appearance#tab-width-mode) which does give them a min width. --- There's also ["read-only mode"](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#mark-a-pane-as-read-only). Then, of course, there's #6549 I think that about covers this problem space?
Author
Owner

@nawlbergs commented on GitHub (Nov 1, 2023):

great... no idea how to implement that.

@nawlbergs commented on GitHub (Nov 1, 2023): great... no idea how to implement that.
Author
Owner

@nawlbergs commented on GitHub (Nov 1, 2023):

blah i figured it out.. thanks

@nawlbergs commented on GitHub (Nov 1, 2023): blah i figured it out.. thanks
Author
Owner

@4wk- commented on GitHub (Mar 21, 2024):

See more detail for complete howTo: https://github.com/microsoft/terminal/issues/6549#issuecomment-2012931368

@4wk- commented on GitHub (Mar 21, 2024): See more detail for complete howTo: https://github.com/microsoft/terminal/issues/6549#issuecomment-2012931368
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20721