Terminal: Include profile names for commands in the Command Palette that have a profile index

Created on 22 Jul 2020  路  2Comments  路  Source: microsoft/terminal

Description of the new feature/enhancement


Trying out the new Command Palette in Windows Terminal Preview, I noticed that it only shows the zero-based index numbers for profiles (even more than you have if you have less than 9); however, I think it might be useful to see the names of the profiles that those commands map to and even be able to search for them by profile name.
image

Perhaps it would also be helpful to not show profile indexes beyond the number that you actually have and, also, have the ability to perform actions with profiles outside the first 9 via the Command Palette if that isn't available already.

Area-User Interface Issue-Task Priority-3 Product-Terminal

Most helpful comment

So this will be more correctly resolved by #6856. Right now, we've only got commands for "open a tab with the Nth profile" in the actions in defaults.json. Once #6856 merges, we'll add actions for "open a tab with the profile with name {name}", which will be more like what you're looking for.

Stay tuned!

All 2 comments

So this will be more correctly resolved by #6856. Right now, we've only got commands for "open a tab with the Nth profile" in the actions in defaults.json. Once #6856 merges, we'll add actions for "open a tab with the profile with name {name}", which will be more like what you're looking for.

Stay tuned!

We _will_, however, need to do something about these indexed ones and how they show up in search results. I'm not in love with commands bound to spatial ordering outside of the keybindings, but... we _are_ trying to make all commands show up in the palette and we need a reasonable way to display them.

I'm going to tentatively mark this one up for 2.0, but we need to figure out what it means for commands to have sidecar data.

Split pane with profile has a sidecar Profile, new tab with index has a sidecar Profile, but _switch to tab_ has a sidecar Tab (!)... and we may want to display them in a similar way.

Command label: Split pane, profile index: 0
Fine print:    [ICO] PowerShell
Command label: Switch to tab, index: 9
Fine print:    [ICO] Command Prompt, +3 more panes
Was this page helpful?
0 / 5 - 0 ratings

Related issues

wkbrd picture wkbrd  路  3Comments

dev-logan picture dev-logan  路  3Comments

mdtauk picture mdtauk  路  3Comments

carlos-zamora picture carlos-zamora  路  3Comments

zadjii-msft picture zadjii-msft  路  3Comments