terminal/src/cascadia/TerminalSettingsModel
Mike Griese ba8bd006f4
Add centerOnLaunch setting (#9036)
This PR is a resurrection of #8414. @Hegunumo has apparently deleted
their account, but the contribution was still valuable. I'm just here to
get it across the finish line.

This PR adds new global setting `centerOnLaunch`. When set to `true`,
the Terminal window will be centered on the display it opens on. 

So the interactions are like:

* `initialPos: x,y`, `centered: true`, `launchMode: default`
  center on the monitor that x,y is on 

* `initialPos: x,y`, `centered: true`, `launchMode: maximized`
  maximized on the monitor that x,y is on (centered adds nothing)

* `initialPos: <omitted>`, `centered: true`, `launchMode: default`
  center on the default monitor

* `initialPos: <omitted>`, `centered: true`, `launchMode: focus`
  center, focus mode on the default monitor

* `initialPos: <omitted>`, `centered: true`, `launchMode: maximized`
  maximized on the default monitor (centered adds nothing)

## Validation Steps Performed
I've played with it on multiple different monitors, and it seems to work
on all of them.

Closes #8414 (original PR)
Closes #7722 

Co-authored-by: Kiminori Kaburagi <yukawa_hidenori@icloud.com>
2021-02-19 22:30:24 +00:00
..
dll Fix the duplicate .xbf error after a TerminalControl build (#8754) 2021-01-13 01:23:17 +00:00
Resources/en-US Add findNext, findPrev actions (#8917) 2021-02-18 19:21:35 +00:00
ActionAndArgs.cpp Add findNext, findPrev actions (#8917) 2021-02-18 19:21:35 +00:00
ActionAndArgs.h Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
ActionArgs.cpp Add findNext, findPrev actions (#8917) 2021-02-18 19:21:35 +00:00
ActionArgs.h Add findNext, findPrev actions (#8917) 2021-02-18 19:21:35 +00:00
ActionArgs.idl Add findNext, findPrev actions (#8917) 2021-02-18 19:21:35 +00:00
AzureCloudShellGenerator.cpp Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
AzureCloudShellGenerator.h Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
CascadiaSettings.cpp Bugfix: update color scheme references properly (#9103) 2021-02-10 22:11:56 +00:00
CascadiaSettings.h Add support for "fragment extensions" (#7632) 2021-02-19 02:12:16 +00:00
CascadiaSettings.idl Bugfix: sync color scheme rename with profile reference (#8793) 2021-01-22 18:21:18 +00:00
CascadiaSettingsSerialization.cpp Add support for "fragment extensions" (#7632) 2021-02-19 02:12:16 +00:00
ColorScheme.cpp Add support for "fragment extensions" (#7632) 2021-02-19 02:12:16 +00:00
ColorScheme.h Enable text search on combo boxes (#9206) 2021-02-19 18:11:07 +00:00
ColorScheme.idl Enable text search on combo boxes (#9206) 2021-02-19 18:11:07 +00:00
Command.cpp Implement CascadiaSettings::Copy() (#7877) 2020-10-16 15:14:11 -07:00
Command.h Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
Command.idl Introduce IconConverter (#7830) 2020-10-08 11:29:04 -07:00
DefaultProfileUtils.cpp Make Global and Profile settings inheritable (#7923) 2020-10-27 17:35:09 +00:00
DefaultProfileUtils.h Make Global and Profile settings inheritable (#7923) 2020-10-27 17:35:09 +00:00
defaults-universal.json Implement user-specified pixel shaders, redux (#8565) 2020-12-15 20:40:22 +00:00
defaults.json Add findNext, findPrev actions (#8917) 2021-02-18 19:21:35 +00:00
EnumMappings.cpp Add support for the windowingBehavior setting (#9118) 2021-02-19 21:09:17 +00:00
EnumMappings.h Add support for the windowingBehavior setting (#9118) 2021-02-19 21:09:17 +00:00
EnumMappings.idl Add support for the windowingBehavior setting (#9118) 2021-02-19 21:09:17 +00:00
GlobalAppSettings.cpp Add centerOnLaunch setting (#9036) 2021-02-19 22:30:24 +00:00
GlobalAppSettings.h Add centerOnLaunch setting (#9036) 2021-02-19 22:30:24 +00:00
GlobalAppSettings.idl Add centerOnLaunch setting (#9036) 2021-02-19 22:30:24 +00:00
IconPathConverter.cpp Move IconSourceConverter from TerminalApp to TSM 2020-12-11 13:17:22 -08:00
IconPathConverter.h Move IconSourceConverter from TerminalApp to TSM 2020-12-11 13:17:22 -08:00
IconPathConverter.idl Move IconSourceConverter from TerminalApp to TSM 2020-12-11 13:17:22 -08:00
IDynamicProfileGenerator.h Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
IInheritable.h Separate runtime TerminalSettings from profile-TerminalSettings (#8602) 2021-02-08 22:01:40 +00:00
init.cpp Hook up the WIL fallback error tracer in Terminal (#7864) 2020-10-09 22:20:12 +00:00
JsonUtils.h Fix deserialization failure message of combined types (#8558) 2020-12-15 11:33:52 -08:00
KeyChordSerialization.cpp Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
KeyChordSerialization.h Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
KeyChordSerialization.idl Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
KeyMapping.cpp Teach flyouts and palette to prefer user bindings over defaults (#8725) 2021-01-12 20:23:40 +00:00
KeyMapping.h Teach flyouts and palette to prefer user bindings over defaults (#8725) 2021-01-12 20:23:40 +00:00
KeyMapping.idl Add findNext, findPrev actions (#8917) 2021-02-18 19:21:35 +00:00
KeyMappingSerialization.cpp Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
LegacyProfileGeneratorNamespaces.h From orbit, nuke the Telnet connection and all supporting infra. (#7840) 2020-10-09 18:59:58 +00:00
Microsoft.Terminal.Settings.ModelLib.vcxproj Introduce public enum name<->value mappings to TSM 2020-12-11 13:19:03 -08:00
Microsoft.Terminal.Settings.ModelLib.vcxproj.filters Introduce public enum name<->value mappings to TSM 2020-12-11 13:19:03 -08:00
packages.config Update C++/WinRT to 2.0.201017.1 (#8061) 2020-10-27 20:15:30 +00:00
pch.cpp Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
pch.h Add support for "fragment extensions" (#7632) 2021-02-19 02:12:16 +00:00
PowershellCoreProfileGenerator.cpp Introduce IconConverter (#7830) 2020-10-08 11:29:04 -07:00
PowershellCoreProfileGenerator.h Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
Profile.cpp Implement user-specified pixel shaders, redux (#8565) 2020-12-15 20:40:22 +00:00
Profile.h Enable text search on combo boxes (#9206) 2021-02-19 18:11:07 +00:00
Profile.idl Enable text search on combo boxes (#9206) 2021-02-19 18:11:07 +00:00
SettingsTypes.h Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
TerminalSettingsSerializationHelpers.h Add support for the windowingBehavior setting (#9118) 2021-02-19 21:09:17 +00:00
TerminalWarnings.h Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
TerminalWarnings.idl Introduce startupActions in settings (#8770) 2021-01-15 18:30:11 +00:00
userDefaults.json Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
WslDistroGenerator.cpp Introduce IconConverter (#7830) 2020-10-08 11:29:04 -07:00
WslDistroGenerator.h Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00