-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
--window argument doesn't work when used in startupActions #11328
Comments
@Sophismata what is the correct way to add startup actions? Here's an example:
will launch a new window titled FirstWindow.
will end up throwing [error 0x80070002 when launching `-w FirstWindow'] These are some comments from AppCommandLine::ParseCommands() method:
Is what's being added to "startupActions" a subsequent command? Thx! |
@elsaco that's actually a surprisingly good question. At first I thought it was straightforward — the But strictly speaking, according to the docs and the schema, it's a "list of actions to execute on startup," in "the same format as commands in the command line arguments." And the command line arguments options and commands section clearly delineates between So, I don't think this is technically a bug. But it is potentially unclear. From my perspective, I've been treating the setting as a sequence of command line paramters, and up until the inclusion of the The fact that Finally, my actual objective here is to create a named window on startup, so that it can be summoned and dismissed with the So, in summary:
Edit: Actually there's a lot of customisation available via |
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! |
@zadjii-msft #10146 was definitely what I was angling towards originally. If options aren't supposed to be allowed in the |
Windows Terminal version (or Windows build number)
1.9.1942.0
Other Software
No response
Steps to reproduce
startupActions
insettings.json
to"--window example"
wt.exe
without argumentsidentifyWindow
commandExpected Behavior
Window title should be
example
.Actual Behavior
Window is untitled (
<unamed window>
).Note that using the --window argument outside of startupActions works fine.
Also, executing
wt --window example
as a startupAction also works. If you double-escape semicolons you can create named windows by abusing that.Example:
wt --window secondWindowName new-tab --profile firstTabSecondWindow \\; new-tab --profile secondTabSecondWindow ; new-tab --profile firstTabFirstWindow ; focus-tab --target 0
Creates:
firstTabFirstWindow
profile.secondWindowName
, with two tabs, using the profilesfirstTabSecondWindow
andsecondTabSecondWindow
.The text was updated successfully, but these errors were encountered: