Métriques du dépôt
- Stars
- (35 764 stars)
- Métriques de merge PR
- (Merge moyen 27j 19h) (24 PRs mergées en 30 j)
Description
Description of the new feature/enhancement
I have a Bash function that opens a tab with PowerShell in the current directory:
vspwsh ()
{
wt new-tab --profile "Developer PowerShell for VS 2017" --startingDirectory .
}
I'd like this to place the new PowerShell tab next to the Bash tab in which I run the command. That way, it would be easier for me to keep track of the purpose of each tab, keeping tabs near each other when they are for working on the same directory.
This is somewhat related to https://github.com/microsoft/terminal/issues/3158 but would not depend on any escape sequences emitted by the shell.
Proposed technical implementation details (optional)
Add a --near-current-tab option to wt new-tab. When specified, use the WT_SESSION environment variable to find the session, tab, and window in which the command was run, and place the new tab near that one.
If both --near-current-tab and --window are specified, then ignore WT_SESSION and instead use the selected tab of the specified window.