microsoft / microsoft/terminal

Summon window and switch to profile

Open
#12,135 1 comment 0 reactions 0 assignees View on GitHub
Area-Windowing Issue-Task Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

This is in response to an internal mail thread. I'm trying to read between the lines here, but here's the gist:

These users want different taskbar entries that when clicked, either open the terminal to a specific profile or launch that profile if it's not already running.

Example:

![image](https://user-images.githubusercontent.com/18356694/148972899-4387df87-2d00-40f8-8535-2d97974fddd4.png)

(let's ignore the jumplist entries for now, and focus on the 1, 2, 3 for different profiles)

So, how would that work?

Something like `wt summon --profile foo`?
* `summon` is the `globalSummon` action
* `--profile foo` indicating "look for the nearest pane with the profile foo, and focus that"?
* If the active pane is that profile, just focus the terminal window
* If its not, is there a pane in this tab with that profile
* if not, is there any pane in the window with that profile
* if not, open a new tab for foo

Closely related to #10279

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing globalSummon action and the related issue #10279, then examine how the proposed `wt summon --profile foo` entry point should locate or launch a profile. Done means defining behavior for the active pane, current tab, window, and missing-profile cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.