microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
94.89k stars 8.22k forks source link

Open a new pane by prompting the user for which profile to use #3586

Open zadjii-msft opened 4 years ago

zadjii-msft commented 4 years ago

Bear with me for a second. Somebody suggested this in another issue, and I wonder if we should consider it here.

image

The new pane is focused, and put in a [number entry] or [search for profiles by name] mode, just like one of our earlier issues suggested.

We probably want that UI anyway, since it has some benefits. Thoughts?

Originally posted by @DHowett-MSFT in https://github.com/microsoft/terminal/issues/1756#issuecomment-507507450


See also #998, #1756, #1000

rkeithhill commented 4 years ago

Yes, ^ this please!! When I open a new pane it is often to ssh to another machine. I have profiles that execute the ssh command with the username@machine name - basically, I just have to type in my password. When I'm not able to use the profile, I have to type all that stuff in - blech. :-)

mdtauk commented 4 years ago

Perhaps this could be the UI when there is no default profile set?

Windos commented 4 years ago

Love this idea, 100% support it!

ADTC commented 3 years ago

Copying here: My own idea from #10402 New Tab page UI for choosing the profile to open from a grid list of profile icons

New Tab UI for choosing the profile to open

At this moment, opening Windows Terminal (without specifically choosing a profile) would open a window with the default profile. Some power-users such as myself may need to open a different profile based on our immediate need. This would require me to open a second tab with the correct profile, then close the tab with the default one. (Or we'd have to create profile shortcuts in our Desktop or Start Menu.)

Modern web browsers have a built-in New Tab page which often shows frequent shortcuts or recently visited pages to be helpful to the user in deciding where they would like to go. A simplified version of such a page could be added to Windows Terminal, that simply displays a list of all the profiles. Choosing one could open it in the new tab that's already created and waiting for a profile.

image

In Settings, the Default Profile selection can have an option called "Show the New Tab page." Consequently, the New Tab button on the tab bar would always show the New Tab page instead of opening a profile. This further increases the usefulness of this feature by giving the same convenient UI to pick a profile. (This may negate the need for the drop-down which could be removed or made optional.)

Note: The checkbox, if checked, would set the chosen profile to the Default Profile selection in Settings. Subsequently, all new tabs and windows will open in that profile until the user returns to the Settings and resets the selection to "Show the New Tab page." (The checkbox would be unchecked again.)

JVimes commented 1 year ago

This feature could ask for profile using the current New Tab menu (Ctrl+Shift+Space). Would be nice to implement "press number to select" (currently have to use arrow keys).

I'm in the same boat as @rkeithhill.