Comments (3)
Thanks for the request!
You can sort of do this already, by using a matchProfiles
entry in the new tab menu (docs).
Here's what mine looks like:
"newTabMenu":
[
{
"type": "remainingProfiles"
},
{
"allowEmpty": false,
"entries":
[
{
"commandline": null,
"name": null,
"source": "Windows.Terminal.Wsl",
"type": "matchProfiles"
}
],
"icon": "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
"inline": "never",
"name": "WSL",
"type": "folder"
}
],
In brief: it's two toplevel menu items, one that says "all unclaimed profiles go in the root" and one that says "now put some WSL profiles in a folder called WSL". All WSL profiles will go into the folder, and all non-WSL profiles will go into the root.
You can minimize it down to...
"newTabMenu": [
{ "type": "remainingProfiles" },
{
"entries": [ { "source": "Windows.Terminal.Wsl", "type": "matchProfiles" } ],
"name": "WSL",
"type": "folder"
}
],
It looks like this at runtime (for me):
(The ubuntu profile doesn't report as WSL, because Canonical Ltd created a new custom entry for it - you can use as many matchProfiles
entries as you need in a menu, though, to cover everything you want.)
Does that help?
from terminal.
FWIW, my actual new tab menu config looks like this:
Dustin's real new tab menu customization
"newTabMenu":
[
{
"type": "remainingProfiles"
},
{
"allowEmpty": false,
"entries":
[
{
"commandline": null,
"name": null,
"source": "Windows.Terminal.PowershellCore",
"type": "matchProfiles"
}
],
"icon": "ms-appx:///ProfileIcons/pwsh-preview.png",
"inline": "never",
"name": "PowerShell",
"type": "folder"
},
{
"allowEmpty": false,
"entries":
[
{
"commandline": null,
"name": null,
"source": "Windows.Terminal.VisualStudio",
"type": "matchProfiles"
},
{
"profile": "{f795dd7e-af72-4ac5-befc-1676ae18cfb0}",
"type": "profile"
}
],
"icon": "ms-appx:///ProfileIcons/pwsh-preview.png",
"inline": "never",
"name": "VS",
"type": "folder"
},
{
"allowEmpty": false,
"entries":
[
{
"commandline": null,
"name": null,
"source": "Windows.Terminal.Wsl",
"type": "matchProfiles"
},
{
"commandline": null,
"name": null,
"source": "CanonicalGroupLimited.Ubuntu20.04LTS_79rhkp1fndgsc",
"type": "matchProfiles"
}
],
"icon": "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
"inline": "never",
"name": "WSL",
"type": "folder"
}
],
from terminal.
At least for now that seems to be the best option we have. Thanks.
from terminal.
Related Issues (20)
- Test
- $(id)
- $(whoami) HOT 1
- $(ls -la) HOT 1
- Terminal closes when store tries to update $(id) HOT 1
- Terminal closes when store tries to update $(id) HOT 1
- Terminal becomes extremely laggy after printing large amount of CJK characters HOT 4
- Terminal update crashes all running applications HOT 3
- Snippets & useCommandline don't account for grapheme clusters quite right
- Can't wake up a closed headless window HOT 1
- PHP Artsan command not recognised as URI HOT 2
- No response when open windows terminal HOT 7
- CSI 58 (undercurl color) sequence misbehaves when in "legacy ANSI" format HOT 11
- Pressing ESC + j or k will equal to Alt + j or k when using Neovim in Windows Terminal
- Suggest me code for this.
- I like some suggestions hare.
- Clicked URL contains unwanted delimiter HOT 3
- Crash when exiting a tab with the debug tap HOT 2
- Font loading faults after Windows update KB5039212 HOT 3
- Changing a value belonging to Resources.resw under Microsoft.Terminal.Control.Lib causes build to fail.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terminal.