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:
PankajBhojwani
2024-06-06 15:17:18 -07:00
committed by GitHub
parent d6b6aacb4f
commit aeed0782bc
13 changed files with 178 additions and 4 deletions

View File

@@ -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"
}
]
}