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

Duplicate Tabs & Panes are not Duplicates #11678

Closed
stephenmartindale opened this issue Nov 3, 2021 · 2 comments
Closed

Duplicate Tabs & Panes are not Duplicates #11678

stephenmartindale opened this issue Nov 3, 2021 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@stephenmartindale
Copy link

Windows Terminal version (or Windows build number)

1.12.2931.0

Other Software

No response

Steps to reproduce

  1. Open Windows Terminal with a starting-directory and command-line set, for example:

    %localappdata%\Microsoft\WindowsApps\wt.exe new-tab --commandline %SystemRoot%\System32\cmd.exe /c "path/to/python-environment.bat && python.exe path/to/interactive/program.py"
    
  2. Press the keyboard shortcut to duplicate the current tab: ctrl+shift+d

    • Alternatively, split the pane.
  3. Observe that the duplicated tab does not invoke the command-line given in --commandline

    • Starting directory (-d) is also not applied.

Expected Behavior

I expect that the duplicate tab (or pane) should be a true duplicate. I.e. it should be created with precisely the initialization parameters of the original tab (or pane), including at least the following most important ones:

  • Profile
  • Starting Directory
  • Command Line

Actual Behavior

  • The duplicated tab does not invoke the command-line given in --commandline
  • Starting directory (-d) is also not applied.
@ghost ghost added 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 Nov 3, 2021
@zadjii-msft
Copy link
Member

... this is what we're tracking with #5047. When #5047 (comment) mentions NewTerminalArgs, that's the bundle of things like startingDirectory, commandline, etc.

/dup #5047

@ghost
Copy link

ghost commented Nov 3, 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 Nov 3, 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 Nov 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants