3866771b1b
#### ⚠️ this pr targets #9977 ## Summary of the Pull Request This adds support for part of the `monitor` property for `globalSummon`. It also goes a little off-spec: ```json "monitor": "any"|"toCurrent"|"toMouse" ``` * `monitor`: This controls the monitor that the window will be summoned from/to - `"any"`: Summon the MRU window, regardless of which monitor it's currently on. - `"toCurrent"`/omitted: (_default_): Summon the MRU window **TO** the monitor with the current **foreground** window. - [**NEW**] `"toMouse"`: Summon the MRU window **TO** the monitor where the **mouse** cursor is. When I was playing with this, It felt like `toMouse` was always what I wanted, not `toCurrent`. We can always just comment that out if we think that's contentious - I'm aware I didn't originally spec that. ## References * Original thread: #653 * Spec: #9274 * megathread: #8888 ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/projects/5#card-60325291 * [x] I work here * [ ] Tests added/passed * [ ] Requires documentation to be updated 😢 ## Detailed Description of the Pull Request / Additional comments I made `toMouse` the default because it felt better. fite-me.jpg ## Validation Steps Performed my ever evolving blob: ```jsonc { "keys": "ctrl+`", "command": { "action": "quakeMode" } }, { "keys": "ctrl+1", "command": { "action": "globalSummon" } }, // { "keys": "ctrl+2", "command": { "action": "globalSummon", "desktop": "toCurrent" } }, // { "keys": "ctrl+2", "command": { "action": "globalSummon", "toggleVisibility": false } }, // { "keys": "ctrl+2", "command": { "action": "globalSummon", "dropdownDuration": 2000 } }, { "keys": "ctrl+2", "command": { "action": "globalSummon", "monitor": "any" } }, // { "keys": "ctrl+3", "command": { "action": "globalSummon", "desktop": "onCurrent" } }, { "keys": "ctrl+3", "command": { "action": "globalSummon", "monitor": "toMouse" } }, // { "keys": "ctrl+4", "command": { "action": "globalSummon", "desktop": "any" } }, { "keys": "ctrl+4", "command": { "action": "globalSummon", "monitor": "toMouse", "dropdownDuration": 500 } }, { "keys": "ctrl+5", "command": { "action": "globalSummon", "dropdownDuration": 500 } }, ``` |
||
---|---|---|
.. | ||
#605 - Search | ||
#653 - Quake Mode | ||
#885 - Terminal Settings Model | ||
#1043 - Set the initial position of the Terminal | ||
#1235 - Azure cloud shell connector | ||
#1337 - Per-Profile Tab Colors | ||
#1502 - Advanced Tab Switcher | ||
#1564 - Settings UI | ||
#1571 - New Tab Menu Customization | ||
#2871 - Pane Navigation | ||
#4191 - Formatted Copy | ||
#5000 - Process Model 2.0 | ||
#6899 - Action IDs | ||
drafts | ||
#532 - Panes and Split Windows.md | ||
#597 - Tab Sizing.md | ||
#607 - Commandline Arguments for the Windows Terminal.md | ||
#754 - Cascading Default Settings.md | ||
#976 - VT52 escape sequences.md | ||
#980 - SnapOnOutput.md | ||
#1142 - Keybinding Arguments.md | ||
#2046 - Command Palette.md | ||
#2046 - Unified keybindings and commands, and synthesized action names.md | ||
#2325 - Default Profile Settings.md | ||
#2557 - Settings Keybinding.md | ||
#2563 - closeOnExit and TerminalConnection evolution.md | ||
#3062 - Appearance configuration object for profiles.md | ||
#4999 - Improved keyboard handling in Conpty.md | ||
#8324 - Application State (TSM).md | ||
Keybindings-spec.md | ||
Proto extensions-spec.md | ||
settings-spec-template.md | ||
spec-template.md | ||
TerminalSettings-spec.md |