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

Feature Request: CMD's "start" command should open new tab instead of new window #9867

Closed
rajan-31 opened this issue Apr 17, 2021 · 4 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@rajan-31
Copy link

Description of the new feature/enhancement

Feature:

CMD's "start" command should open new tab instead of new window

OR

any other option to run command in separate tabs (like we open new tabs of specific terminal).

Example:

start npm run startMongo && start npm run local

Expected: It should open two tabs of "Windows Terminal" running each command

Current Behavior: It opens two separate windows of CMD (also they are not Windows Terminal windows)

Proposed technical implementation details (optional)

Not sure about solution

As per my knowledge currently it is not possible to open tabs with command in same instance, but like we can open new tabs of specific terminals using

wt -p "Command Prompt" ; new-tab -p "Windows PowerShell"

like this we can add new option to run the command in new tab.

Example: assume that the new option is "--run"

wt --run "npm run startMongo" -p "Command Prompt" ; new-tab --run "npm run local" -p "Windows PowerShell"

@rajan-31 rajan-31 added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Apr 17, 2021
@ghost ghost 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 Apr 17, 2021
@LuanVSO
Copy link
Contributor

LuanVSO commented Apr 19, 2021

try wt --window 0 -p "Command Prompt" npm run startMongo; -p "Windows PowerShell" npm run local

@rajan-31
Copy link
Author

rajan-31 commented Apr 19, 2021

I got,

[error 0x80070002 when launching `npm run startMongo']

&

[error 0x80070002 when launching `npm run local']

@zadjii-msft
Copy link
Member

FYI when there's support for "setting the default terminal" (#492), then start foo.exe will open up foo.exe in a new WT tab.

For now, you'll need to use the wt -w option. @rajan-31 out of curiousity, is your default profile a WSL profile? If you're trying to run a WSL commandline, you'll need to make sure to prefix the command with wsl.exe -d {Whatever-Distro-You-Have-Installed}, like wt -w 0 -- wsl -d Ubuntu npm run startMongo

/dup #492
/dup #4472

@ghost
Copy link

ghost commented Apr 19, 2021

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Apr 19, 2021
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 19, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants