Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoswitch terminal based on open file path #23

ProLoser opened this issue Apr 16, 2019 · 1 comment


None yet
2 participants
Copy link

commented Apr 16, 2019


I have a monorepo or a multi-root workspace. I launch multiple terminals, some associated with specific folder trees (specific packages in my monorepo or a specific project-root). I frequently switch between projects and the current UI for switching associated terminals is tedious.


I'd like to add an optional glob pattern match to some of my terminal configurations. When a file or folder is opened, I'd like the active terminal to switch (if already started) to the corresponding terminal.
Switching visible terminal should only occur if the terminal panel is already open.

This would mirror the Source Control panel's UX where selecting files or root folders changes what GIT repo you're currently working with.

		"name": "myLibrary",
		"icon": "play",
		"command": "yarn workspace myLibrary start",
		"open": true,
		"autoswitch": "**/myLibrary/**"
		"name": "project-a",
		"icon": "repo-clone",
		"command": "yarn workspace project-a start",
		"open": true,
		"autoswitch": "**/project-a/**"
		"name": "project-b",
		"icon": "screen-full",
		"command": "yarn workspace project-b test",
		"open": true

I LOVE this project, might try to patch vscode to get the split terminal API because I'd love that feature too.

@ProLoser ProLoser changed the title Associate terminal with folder path Autoswitch terminal based on open file path Apr 16, 2019


This comment has been minimized.

Copy link

commented Apr 16, 2019

Our config object is getting pretty complicated, but I like your proposal. The only problem is that I think there's no API for detecting the status of the bottom pane (visible/hidden) 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.