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

Windows Terminal Preset command arguments are invalid #91

Open
JhonnyLi opened this issue Jan 11, 2021 · 5 comments
Open

Windows Terminal Preset command arguments are invalid #91

JhonnyLi opened this issue Jan 11, 2021 · 5 comments

Comments

@JhonnyLi
Copy link

JhonnyLi commented Jan 11, 2021

Current Command Arguments for Windows Terminal are invalid.
image

They need to be changed to:
image

Reference:
Using command-line arguments for Windows Terminal (docs.microsoft.com)

@JhonnyLi
Copy link
Author

Fix:
Options.cs line 139.
DefaultPresets["Windows Terminal"] = new Command("wt", "-d %folder%");

@JhonnyLi
Copy link
Author

As a workaround before this is fixed you can use the custom preset for the default command line:
Command: wt
Command arguments: -d %folder%

@JhonnyLi JhonnyLi changed the title Windows Terminal Preset parameters are invalid Windows Terminal Preset command arguments are invalid Jan 11, 2021
@mayureshs
Copy link

Is this workaround still working ? With the settings below Terminal app does not open.
image

@JhonnyLi
Copy link
Author

@mayureshs When you say that it doesnt open. Do you mean that it doesnt open at all or that it opens with an error message ?
If you see an error message then just replace %folder% with a dot.
-d .
^= like that.
If windows terminal doesnt open at all then make sure that you can open windows terminal from cmd or even from an explorer folder window.
image
If that works, it should work in vs aswell.

@mayureshs
Copy link

It worked after restarting VS.

stamminator added a commit to stamminator/OpenCommandLine that referenced this issue Jan 18, 2022
WT preset command no longer crashes when opening at project or solution level madskristensen#91
madskristensen pushed a commit that referenced this issue Jul 29, 2024
WT preset command no longer crashes when opening at project or solution level #91
ktos pushed a commit to ktos/OpenCommandLine that referenced this issue Sep 5, 2024
WT preset command no longer crashes when opening at project or solution level madskristensen#91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants