mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-19 18:11:39 -05:00
Allow actions in the new tab dropdown (#17281)
Allows the user to define entries in the new tab menu that execute actions, based on their action Id Closes #3759 Closes #9362
This commit is contained in:
@@ -629,7 +629,8 @@
|
||||
"folder",
|
||||
"separator",
|
||||
"remainingProfiles",
|
||||
"matchProfiles"
|
||||
"matchProfiles",
|
||||
"action"
|
||||
]
|
||||
},
|
||||
"NewTabMenuEntry": {
|
||||
@@ -781,6 +782,28 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"ActionEntry": {
|
||||
"description": "An action in the new tab dropdown",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/$defs/NewTabMenuEntry"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "action"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "The ID of the action to show in this entry"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"SwitchToAdjacentTabArgs": {
|
||||
"oneOf": [
|
||||
{
|
||||
@@ -2054,6 +2077,9 @@
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/RemainingProfilesEntry"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/ActionEntry"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user