Shortcut to create new window with current profile? Equivalently, clone current tab into new window #14350
Labels
Area-Settings
Issues related to settings and customizability, for console or terminal
Issue-Task
It's a feature request, but it doesn't really need a major design.
Product-Terminal
The new Windows Terminal.
Milestone
Thank you for your work on the Windows Terminal so far, it's pretty awesome!
Description of the new feature/enhancement
Support a shortcut to create a new window with current profile / clone current tab into a new window. That is, if the current tab uses my non-default "Debian" profile, pressing this shortcut will open a new window with a single tab of the "Debian" profile.
This would be super useful to enable a window-based approach, with tiled windows, and it would go really well with the "Focus" launch mode. I see this was rationale behind the requests to add the "New Window" shortcut, Ctrl-Shift-N in the first place [#1051, #3144]
Workarounds
I am describing a few workarounds below:
wt.exe -p $WT_PROFILE_ID
, and I can also alias this for my shell,alias w="wt.exe -p $WT_PROFILE_ID"
, but this only works in Linux, and requires I'm at the shell prompt.It would be awesome to have a single, easy to use keystroke [Alt-F2? :) ] to duplicate the current profile into a new window.
Proposed technical implementation details (optional)
There already is a command to start a new window,
newWindow
.https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#window-management-commands
It already accepts
index
andprofile
arguments, but they are absolute. I haven't found a way to refer to the current index/profile.Maybe we could extend
index
and/orprofile
so-1
means "use the index corresponding to the profile of the current tab".I'd love any feedback on this, and I would be happy to contribute to the implementation.
The text was updated successfully, but these errors were encountered: