You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most straightforward solution is to add an optional command palette mode to the ToggleCommandPalette, with two "launch modes": action and command line.
We will be able to implement option 2 only once #8044 gets merged.
I'll be danged, I could have sworn I had already filed a task for this.
Ideas:
I don't really care that toggle with a mode might also close it. Maybe if you're in action mode, and you press the toggleCommandPalette(mode=commandline) keybinding, it'll pop you directly into commandline mode? (with Enable shortcut while CommandPalette is open #8044) (and vice versa)
Action and commandline mode definitely, tab search maybe? I suppose { action: toggleCommandPalette, mode: tabSearch } doesn't really make sense now does it.
I'll be danged, I could have sworn I had already filed a task for this.
Ideas:
* I don't really care that toggle with a mode might also close it. Maybe if you're in action mode, and you press the `toggleCommandPalette(mode=commandline)` keybinding, it'll pop you directly into commandline mode? (with #8044) (and vice versa)
* Action and commandline mode definitely, tab search maybe? I suppose `{ action: toggleCommandPalette, mode: tabSearch }` doesn't _really_ make sense now does it.
changed the title [-]Allow binding a shortcut to openning CommandPalette in the Command Line Mode[/-][+]Make the Command Line Mode easier to access[/+]on Nov 18, 2020
void TerminalPage::_HandleToggleCommandPalette(const IInspectable& /*sender*/,
const ActionEventArgs& args)
{
// TODO GH#6677: When we add support for commandline mode, first set the
// mode that the command palette should be in, before making it visible.
CommandPalette().EnableCommandPaletteMode();
CommandPalette().Visibility(CommandPalette().Visibility() == Visibility::Visible ?
Visibility::Collapsed :
Visibility::Visible);
args.Handled(true);
}
Activity
zadjii-msft commentedon Nov 18, 2020
I'll be danged, I could have sworn I had already filed a task for this.
Ideas:
toggleCommandPalette(mode=commandline)keybinding, it'll pop you directly into commandline mode? (with Enable shortcut while CommandPalette is open #8044) (and vice versa){ action: toggleCommandPalette, mode: tabSearch }doesn't really make sense now does it.DHowett commentedon Nov 18, 2020
I'd say that the command palette being the backend for tab search is an implementation detail, not something to expose to the users 😄
Don-Vito commentedon Nov 18, 2020
Mike Griese (@zadjii-msft) - I believe that:
WDYT?
Don-Vito commentedon Nov 18, 2020
Yep.. that was a bad idea, especially since we already have a tabSeach binding...
[-]Allow binding a shortcut to openning CommandPalette in the Command Line Mode[/-][+]Make the Command Line Mode easier to access[/+]Don-Vito commentedon Nov 23, 2020
Mike Griese (@zadjii-msft) - I found it.. in the form of TODO 😆
Add launchMode parameter to ToggleCommandPalette action (microsoft#8382)