Skip to content

Commit b681382

Browse files
committed
Add Project and Debug editor script command locations
1 parent 82199e6 commit b681382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/manuals/editor-scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ return M
118118
Editor expects `get_commands()` to return an array of tables, each describing a separate command. Command description consists of:
119119

120120
- `label` (required) — text on a menu item that will be displayed to the user
121-
- `locations` (required) — an array of either `"Edit"`, `"View"`, `"Assets"`, `"Bundle"` or `"Outline"`, describes a place where this command should be available. `"Edit"` and `"View"` mean menu bar at the top, `"Assets"` means context menu in Assets pane, `"Outline"` means context menu in Outline pane, and `"Bundle"` means **Project → Bundle** submenu.
121+
- `locations` (required) — an array of either `"Edit"`, `"View"`, `"Project"`, `"Debug"`, `"Assets"`, `"Bundle"` or `"Outline"`, describes a place where this command should be available. `"Edit"`, `"View"`, `"Project"` and `"Debug"` mean menu bar at the top, `"Assets"` means context menu in Assets pane, `"Outline"` means context menu in Outline pane, and `"Bundle"` means **Project → Bundle** submenu.
122122
- `query` — a way for command to ask editor for relevant information and define what data it operates on. For every key in `query` table there will be corresponding key in `opts` table that `active` and `run` callbacks receive as argument. Supported keys:
123123
- `selection` means this command is valid when there is something selected, and it operates on this selection.
124124
- `type` is a type of selected nodes command is interested in, currently these types are allowed:

0 commit comments

Comments
 (0)