[PR #12209] Add support for ctrl+click on the dropdown to launch elevated #28899

Open
opened 2026-01-31 09:31:31 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/12209

State: closed
Merged: Yes


image

Just like the shift+click and the alt click shortcuts, now Ctrl+Click will launch a new window with that profile, elevated.

I also found that the GenerateName wasn't updated for the elevate arg, so added that. I considered adding the following to the defaults, but decided against it. It added 10 more entries to the command palette that were only separated by the elevate: true param, so that didn't feel valuable. Those are posted below for posterity.

Considered new keybindings:

        { "command": { "action": "newTab", "index": 0, "elevate": true }, "keys": "ctrl+shift+alt+1" },
        { "command": { "action": "newTab", "index": 1, "elevate": true }, "keys": "ctrl+shift+alt+2" },
        { "command": { "action": "newTab", "index": 2, "elevate": true }, "keys": "ctrl+shift+alt+3" },
        { "command": { "action": "newTab", "index": 3, "elevate": true }, "keys": "ctrl+shift+alt+4" },
        { "command": { "action": "newTab", "index": 4, "elevate": true }, "keys": "ctrl+shift+alt+5" },
        { "command": { "action": "newTab", "index": 5, "elevate": true }, "keys": "ctrl+shift+alt+6" },
        { "command": { "action": "newTab", "index": 6, "elevate": true }, "keys": "ctrl+shift+alt+7" },
        { "command": { "action": "newTab", "index": 7, "elevate": true }, "keys": "ctrl+shift+alt+8" },
        { "command": { "action": "newTab", "index": 8, "elevate": true }, "keys": "ctrl+shift+alt+9" },

Includes a semi-related dead code removal for the elevated param for _OpenNewWindow, which didn't end up being used, and wouldn't work as intended anyways.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/12209 **State:** closed **Merged:** Yes --- ![image](https://user-images.githubusercontent.com/18356694/150421834-de68140b-a935-47d7-95ca-ab91a6421f1b.png) Just like the shift+click and the alt click shortcuts, now Ctrl+Click will launch a new window with that profile, elevated. I also found that the GenerateName wasn't updated for the elevate arg, so added that. I considered adding the following to the defaults, but decided against it. It added 10 more entries to the command palette that were only separated by the `elevate: true` param, so that didn't feel valuable. Those are posted below for posterity. * [x] closes https://github.com/microsoft/terminal/projects/5#card-50759221 * [x] Tested manually * [ ] Docs.... maybe need updating? Considered new keybindings: ```jsonc { "command": { "action": "newTab", "index": 0, "elevate": true }, "keys": "ctrl+shift+alt+1" }, { "command": { "action": "newTab", "index": 1, "elevate": true }, "keys": "ctrl+shift+alt+2" }, { "command": { "action": "newTab", "index": 2, "elevate": true }, "keys": "ctrl+shift+alt+3" }, { "command": { "action": "newTab", "index": 3, "elevate": true }, "keys": "ctrl+shift+alt+4" }, { "command": { "action": "newTab", "index": 4, "elevate": true }, "keys": "ctrl+shift+alt+5" }, { "command": { "action": "newTab", "index": 5, "elevate": true }, "keys": "ctrl+shift+alt+6" }, { "command": { "action": "newTab", "index": 6, "elevate": true }, "keys": "ctrl+shift+alt+7" }, { "command": { "action": "newTab", "index": 7, "elevate": true }, "keys": "ctrl+shift+alt+8" }, { "command": { "action": "newTab", "index": 8, "elevate": true }, "keys": "ctrl+shift+alt+9" }, ``` Includes a semi-related dead code removal for the `elevated` param for `_OpenNewWindow`, which didn't end up being used, and wouldn't work as intended anyways.
claunia added the pull-request label 2026-01-31 09:31:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28899