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

Allow shift+click on a profile to open a new window #9429

Merged
3 commits merged into from
Mar 10, 2021

Conversation

PankajBhojwani
Copy link
Contributor

Summary of the Pull Request

Shift+click on a profile to open a new wt window with that profile. Or, shift+click on the '+' button to open a new wt window with the default profile.

PR Checklist

Validation Steps Performed

Manual testing

@ghost ghost added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. labels Mar 9, 2021
Copy link
Contributor

@Nacimota Nacimota left a comment

Choose a reason for hiding this comment

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

I wonder if the tooltip/s should be updated as well, or would that be making them too wordy?

@Don-Vito
Copy link
Contributor

I wonder if the tooltip/s should be updated as well, or would that be making them too wordy?

I agree with @Nacimota, since we already mention alt+click in tooltip we should probably mention shift+click as well.
Given we put it in a separate line of the tooltip, I believe it is not too wordy.

Alternatively, we could probably show different tooltips given the modifier (but I am not even sure what is the best way to implement such behavior).

@Nacimota
Copy link
Contributor

Nacimota commented Mar 10, 2021

Alternatively, we could probably show different tooltips given the modifier (but I am not even sure what is the best way to implement such behavior).

You mean instead of the current tip it would say "Split the current window" when you hold alt, for example? There is something about that which I find appealing, but I can't help but think it takes away from the discoverability a little bit, which I think is really what the tooltip is all about.

I've just tried it with both tips on separate lines as you suggested and I agree that it does not look too bad. I do worry that one can put too much text in there, though.

tooltip

@Don-Vito
Copy link
Contributor

Don-Vito commented Mar 10, 2021

Alternatively, we could probably show different tooltips given the modifier (but I am not even sure what is the best way to implement such behavior).

You mean instead of the current tip it would say "Split the current window" when you hold alt, for example? There is something about that which I find appealing, but I can't help but think it takes away from the discoverability a little bit, which I think is really what the tooltip is all about.

I agree that it somewhat reduces the value of the tool tip - it was just a fallback if we believe that the tool tip is too cluttered.

Somewhere in a separate thread we discussed alternatives for providing this information not via tool-tip but through some visible element / another organization of the menu.

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

This code looks fine, but I suppose I should block over the tooltip text

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Mar 10, 2021
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Mar 10, 2021
@PankajBhojwani
Copy link
Contributor Author

Tooltip updated! Thanks for the feedback everyone

@carlos-zamora carlos-zamora added the AutoMerge Marked for automatic merge by the bot when requirements are met label Mar 10, 2021
@ghost
Copy link

ghost commented Mar 10, 2021

Hello @carlos-zamora!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit a47ed99 into main Mar 10, 2021
@ghost ghost deleted the dev/pabhoj/shift_click_window branch March 10, 2021 18:33
@ghost
Copy link

ghost commented Apr 14, 2021

🎉Windows Terminal Preview v1.8.1032.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
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 AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shift+Click on a profile opens a new window
5 participants