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

New tabs don't launch in the directory of the first tab when launching WT via cmd.exe shorthand #14761

Open
Pieter-Dewachter opened this issue Jan 30, 2023 · 1 comment
Labels
Area-DefApp Issue-Bug It either shouldn't be doing this or needs an investigation. Issue-Task It's a feature request, but it doesn't really need a major design. Priority-2 A description (P2) Product-Terminal The new Windows Terminal.
Milestone

Comments

@Pieter-Dewachter
Copy link

Windows Terminal version

1.15.3466.0

Windows build number

10.0.22621.1105

Other Software

No response

Steps to reproduce

Reproduce actual (broken) behaviour:

  1. When in a particular folder with Explorer, open Terminal by typing "cmd" in the address bar
  2. Create a new tab in the opened Terminal window

Reproduce expected behaviour:

  1. When in a particular folder with Explorer, open Terminal by typing "wt" in the address bar
  2. Create a new tab in the opened Terminal window

Expected Behavior

The new tab should have the same working director as the first tab, if settings.json is correctly setup.
This is already the case when launching Terminal through the "wt" shorthand, but not via "cmd".

Actual Behavior

The new tab always starts in "C:\Windows\System32" regardless of the starting directory of the first tab.
When launching Terminal through the "wt" shorthand, the new tab will start in the correct directory.

@Pieter-Dewachter Pieter-Dewachter added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jan 30, 2023
@carlos-zamora carlos-zamora added Product-Terminal The new Windows Terminal. Issue-Task It's a feature request, but it doesn't really need a major design. Priority-2 A description (P2) Area-DefApp and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 1, 2023
@carlos-zamora carlos-zamora added this to the Backlog milestone Feb 1, 2023
@zadjii-msft
Copy link
Member

Notes:

Or, you could set up your CMD prompt to emit the CWD and then duplicateTab would just do the right thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-DefApp Issue-Bug It either shouldn't be doing this or needs an investigation. Issue-Task It's a feature request, but it doesn't really need a major design. Priority-2 A description (P2) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

3 participants