Skip to content

Add support for --fullscreen, --maximized#6139

Merged
15 commits merged intomasterfrom
dev/migrie/f/--fullscreen
Jun 1, 2020
Merged

Add support for --fullscreen, --maximized#6139
15 commits merged intomasterfrom
dev/migrie/f/--fullscreen

Conversation

@zadjii-msft
Copy link
Copy Markdown
Member

@zadjii-msft zadjii-msft commented May 22, 2020

Summary of the Pull Request

Adds two new flags to the wt.exe alias:

  • --maximized,-M: Launch the new Terminal window maximized. This flag cannot be combined with --fullscreen.
  • --fullscreen,-F: Launch the new Terminal window fullscreen. This flag cannot be combined with --maximized.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • I had to move the commandline arg parsing up a layer from TerminalPage to AppLogic, because AppLogic controls the Terminal's settings, including launch mode settings. This seems like a reasonable change, to put both the settings from the file and the commandline in the same place.

    • Most of the diff is that movement of code
  • "What happens when you try to pass both flags, like wtd -M -F new-tab?":
    image

Validation Steps Performed

  • Ran a bunch of commandlines to see what happened.

@ghost ghost added Area-Commandline wt.exe's commandline arguments Issue-Task It's a feature request, but it doesn't really need a major design. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. labels May 22, 2020
@ghost ghost closed this May 28, 2020
@zadjii-msft
Copy link
Copy Markdown
Member Author

Oh, so one the target branch was closed, this can't get re-targeted anymore? That's... good to know

@zadjii-msft zadjii-msft reopened this May 28, 2020
@zadjii-msft zadjii-msft changed the base branch from dev/migrie/f/288-launchMode-fullscreen to master May 28, 2020 17:01
@zadjii-msft zadjii-msft marked this pull request as ready for review May 28, 2020 17:01
@DHowett
Copy link
Copy Markdown
Member

DHowett commented May 28, 2020

I just saw that GitHub had a new feature that automatically changed branch targeting if you did this, so I wonder why it didn’t work

Copy link
Copy Markdown
Member

@miniksa miniksa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks fine to me.

Comment thread src/cascadia/TerminalApp/AppCommandlineArgs.cpp
Comment thread src/cascadia/TerminalApp/AppCommandlineArgs.cpp Outdated
@zadjii-msft zadjii-msft added the Needs-Second It's a PR that needs another sign-off label Jun 1, 2020
@ghost ghost requested review from carlos-zamora and leonMSFT June 1, 2020 18:55
@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jun 1, 2020
@ghost
Copy link
Copy Markdown

ghost commented Jun 1, 2020

Hello @zadjii-msft!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 8987486 into master Jun 1, 2020
@ghost ghost deleted the dev/migrie/f/--fullscreen branch June 1, 2020 21:57
@ghost
Copy link
Copy Markdown

ghost commented Jun 18, 2020

🎉Windows Terminal Preview v1.1.1671.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Commandline wt.exe's commandline arguments AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Task It's a feature request, but it doesn't really need a major design. Needs-Second It's a PR that needs another sign-off Priority-3 A description (P3) Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fullscreen toggle commandline parameter

4 participants