Open ProLoser opened 5 years ago
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) 🤔
@fabiospampinato you can get pretty much all the api stats for vscode by using Developer: Inspect Context Keys
and check the console.
Background
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.
Proposal
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.
P.S. I LOVE this project, might try to patch vscode to get the split terminal API because I'd love that feature too.