Feature Request: Workspaces #8322

Closed
opened 2026-01-31 01:26:31 +00:00 by claunia · 4 comments
Owner

Originally created by @dakom on GitHub (May 20, 2020).

Description of the new feature/enhancement

I often have several different related directories and would like to organize them as tabs in a Terminal window. For example, project "foo" might have "foo-frontend", "foo-backend", "foo-utils", "foo-shared-types", etc.

Currently, spinning this up requires a lot of manual work (open new tab, change directory, etc.)

It would be awesome if Terminal recognized some sort of "workspace" file, such that double-clicking it opened all those directories as separate tabs in a new Terminal window.

This is already an established convention in many other programs, including Microsoft products like VSCode

Originally created by @dakom on GitHub (May 20, 2020). # Description of the new feature/enhancement I often have several different related directories and would like to organize them as tabs in a Terminal window. For example, project "foo" might have "foo-frontend", "foo-backend", "foo-utils", "foo-shared-types", etc. Currently, spinning this up requires a lot of manual work (open new tab, change directory, etc.) It would be awesome if Terminal recognized some sort of "workspace" file, such that double-clicking it opened all those directories as separate tabs in a new Terminal window. This is already an established convention in many other programs, including Microsoft products like VSCode
Author
Owner

@zadjii-msft commented on GitHub (May 20, 2020):

So there's already #756, which covers the whole "start with multiple tabs open" issue. What that won't get you is a way to have a file that will just run the Terminal with all those tabs automatically.

I suppose you could make a batch script that used the wt commandline args, and do something like the following:

@echo off

wt.exe new-tab -d .\foo-frontend ; new-tab -d .\foo-backend ; new-tab .\foo-utils

which will just spawn the terminal with three tabs in the given paths.

@zadjii-msft commented on GitHub (May 20, 2020): So there's already #756, which covers the whole "start with multiple tabs open" issue. What that won't get you is a way to have a file that will just run the Terminal with all those tabs automatically. I suppose you could make a batch script that used the [wt commandline args](https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments), and do something like the following: ```cmd @echo off wt.exe new-tab -d .\foo-frontend ; new-tab -d .\foo-backend ; new-tab .\foo-utils ``` which will just spawn the terminal with three tabs in the given paths.
Author
Owner

@dakom commented on GitHub (May 20, 2020):

Ah you're right, I hadn't seen that issue - specifically this comment

Nor did I realize that the command line args were a thing. Wow, cool stuff :)

I'm happy if you want to close this issue. Thanks!

@dakom commented on GitHub (May 20, 2020): Ah you're right, I hadn't seen that issue - specifically [this comment](https://github.com/microsoft/terminal/issues/756#issuecomment-512195265) Nor did I realize that the command line args were a thing. Wow, cool stuff :) I'm happy if you want to close this issue. Thanks!
Author
Owner

@zadjii-msft commented on GitHub (May 20, 2020):

Happy to help 😄

@zadjii-msft commented on GitHub (May 20, 2020): Happy to help 😄
Author
Owner

@dakom commented on GitHub (May 21, 2020):

btw - in case anyone else lands here, adding start /b avoids the intermediary cmd window. e.g.

@echo off

start /b wt.exe new-tab -d .\foo-frontend ; new-tab -d .\foo-backend ; new-tab .\foo-utils
@dakom commented on GitHub (May 21, 2020): btw - in case anyone else lands here, adding `start /b` avoids the intermediary cmd window. e.g. ```bat @echo off start /b wt.exe new-tab -d .\foo-frontend ; new-tab -d .\foo-backend ; new-tab .\foo-utils ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8322