Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to close tabs with mouse middle click when close ("x") button is hidden (#3335) #15517

Open
thenger opened this issue Jun 6, 2023 · 8 comments
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal Help Wanted We encourage anyone to jump in on these. Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Milestone

Comments

@thenger
Copy link

thenger commented Jun 6, 2023

Description of the new feature/enhancement

Problem

Can't close tab using mouse middle click.

Consequence

This is a consequence of #3335 (hide close button (x) on tabs).

Possible workaround not perfect

I think keyboard shortcuts are not a solution when you browse tabs with mouse.

Feature result

When close button is hidden, user can close tab using the mouse middle click

@thenger thenger added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Jun 6, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jun 6, 2023
@j4james
Copy link
Collaborator

j4james commented Jun 6, 2023

I think something like this will ultimately be supported via configurable mouse bindings (see issue #1553). The idea being that you could choose what action you want a mouse button to perform in a particular context. In this case, you'd bind the middle mouse button to the Close Tab action when the mouse is located over a tab.

This operation is interesting, though, because you would assumedly want to close the tab that you're hovering hover, rather than the active tab. That's something that'll need to be accounted for in the binding format which I don't think has been considered before.

@lhecker
Copy link
Member

lhecker commented Jun 6, 2023

I agree about the configurability aspect, but I personally feel like middle click should by default close the hovered tab even if the X button is hidden. Or was that done intentionally?

@lhecker lhecker added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. labels Jun 6, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Tag-Fix Doesn't match tag requirements label Jun 6, 2023
@DHowett
Copy link
Member

DHowett commented Jun 6, 2023

It's, ah, an implementation detail. The only way to suppress the X button was to mark the tab as non-closeable. We should fix it more comprehensively... 😝

@j4james
Copy link
Collaborator

j4james commented Jun 6, 2023

Oh I didn't realise this was already the default behavior when the close button is visible, since I don't have a middle mouse button. If that's the case, I agree it should continue to work when the button is hidden. However, I still think it's worth referencing this issue in #1553 if we eventually plan to support this as a configurable binding, because it is a bit different from other actions.

@lhecker lhecker added Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) and removed Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. labels Jun 6, 2023
@carlos-zamora carlos-zamora added this to the Terminal v1.19 milestone Jun 7, 2023
@carlos-zamora carlos-zamora removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Jun 7, 2023
@carlos-zamora carlos-zamora changed the title Feature Request: Ability to close tabs with mouse middle click when close ("x") button is hidden (#3335) Ability to close tabs with mouse middle click when close ("x") button is hidden (#3335) Jun 7, 2023
@rifat01mahmud

This comment was marked as spam.

@thenger

This comment was marked as outdated.

@zadjii-msft zadjii-msft modified the milestones: Terminal v1.19, Backlog Aug 17, 2023
@zadjii-msft zadjii-msft added the Help Wanted We encourage anyone to jump in on these. label Aug 17, 2023
@thenger
Copy link
Author

thenger commented Aug 9, 2024

It was in milestone 1.19
but it looks like it got lost ?

@Vampire
Copy link

Vampire commented Aug 9, 2024

On 2023-06-07 it was added to "Terminal v1.19".
On 2023-08-17 it was removed from "Terminal v1.19" and added to "Backlog" and label "Help Wanted" added.
So, ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal Help Wanted We encourage anyone to jump in on these. Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

8 participants