Allow me to expand a profile into a set of profiles per subdirectory #23918

Open
opened 2026-01-31 08:56:07 +00:00 by claunia · 3 comments
Owner

Originally created by @carlos-zamora on GitHub (Dec 30, 2025).

Originally assigned to: @carlos-zamora on GitHub.

Description of the new feature

I have a tendency to have a D:/projects folder or something like that where all of my coding projects live in separate subdirectories.

I'd love to have them easily accessible in my new tab menu.

Proposed technical implementation details

matchProfiles should take a new parameter directories that takes a folder path. That would be super easy to add to the settings UI too.

Bonus points if we could come up with a way to replicate this in the command palette.

Originally created by @carlos-zamora on GitHub (Dec 30, 2025). Originally assigned to: @carlos-zamora on GitHub. ### Description of the new feature I have a tendency to have a `D:/projects` folder or something like that where all of my coding projects live in separate subdirectories. I'd love to have them easily accessible in my new tab menu. ### Proposed technical implementation details [`matchProfiles`](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/appearance#match-profiles) should take a new parameter `directories` that takes a folder path. That would be super easy to add to the settings UI too. Bonus points if we could come up with a way to replicate this in the command palette.
claunia added the Issue-FeatureArea-SettingsProduct-Terminal labels 2026-01-31 08:56:08 +00:00
Author
Owner

@DHowett commented on GitHub (Jan 7, 2026):

Notes from discussion: This would not be a matcher, but a new concept - "take this profile and repeat it once per subdirectory in this directory". Similar to "iterateOn" for command palette.

@DHowett commented on GitHub (Jan 7, 2026): Notes from discussion: This would not be a matcher, but a new concept - "take this profile and repeat it once per subdirectory in this directory". Similar to "iterateOn" for command palette.
Author
Owner

@DHowett commented on GitHub (Jan 7, 2026):

Thoughts mk.II

  • We may want to converge this with iterateOn, because if we don't do that then we have two different kinds of iteratable things.
  • If we make profiles iterable-on, but do not converge the implementation, you wouldn't be able to get at those profiles in the palette
  • Would we add iterateOn: directory?
  • If we use an iterable command, we will need to add iterable commands as menus in NTM
@DHowett commented on GitHub (Jan 7, 2026): Thoughts mk.II - We may want to converge this with `iterateOn`, because if we don't do that then we have two different kinds of iteratable things. - If we make profiles iterable-on, but do not converge the implementation, you wouldn't be able to get at those profiles _in_ the palette - Would we add `iterateOn: directory`? - If we use an iterable command, we will need to add iterable commands as menus in NTM
Author
Owner

@carlos-zamora commented on GitHub (Jan 7, 2026):

Added to "Spec Needed" just to note that we should answer these questions. Really just needs a mini-spec imo, but I have a heavy bias here 😋

@carlos-zamora commented on GitHub (Jan 7, 2026): Added to "Spec Needed" just to note that we should answer these questions. Really just needs a mini-spec imo, but I have a heavy bias here 😋
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23918