-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
add Terminal to shell plugin settings #2045
add Terminal to shell plugin settings #2045
Conversation
@@ -36,6 +36,7 @@ public enum Shell | |||
Cmd = 0, | |||
Powershell = 1, | |||
RunCommand = 2, | |||
Terminal = 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Would it make sense for this to be named
Windows Terminal
? - Do we need translations for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just called Terminal, and flow launcher is windows only, so I don't think the distinction is necessary. As for translations, the other options aren't translated, so it kind of be adding too much responsibility to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to #1116 |
Hi, This happens because the arguments given are for pwsh, not for windows terminal It would look something like this for powershell and cmd respectively: case Shell.TerminalPWSH:
{
info.FileName = "wt.exe";
info.ArgumentList.Add(pwsh)
if (_settings.LeaveShellOpen)
{
info.ArgumentList.Add("-NoExit");
info.ArgumentList.Add("-c");
info.ArgumentList.Add(command);
}
else
{
info.ArgumentList.Add("-c");
info.ArgumentList.Add(command);
}
break;
}
case Shell.TerminalCMD:
{
info.FileName = "wt.exe";
info.ArgumentList.Add(cmd)
if (_settings.LeaveShellOpen)
{
info.ArgumentList.Add("/k");
info.ArgumentList.Add(command);
}
else
{
info.ArgumentList.Add("/c");
info.ArgumentList.Add(command);
}
break;
} Ideally it would automatically use the default profile and none of this would be necessary, but I'm not quite sure if it can as of now |
After looking just a bit more Hope this helps! |
Close as #3225 implements it. |
fixes #2043
Adds Terminal to the list of shells available for running shell commands.