#2459: reject raw opens through docking command aliases

This commit is contained in:
Kristian Myram
2026-10-27 20:30:13 +00:00
parent dd12ed8f9c
commit 335d1f56ac
3 changed files with 39 additions and 4 deletions
+3 -1
View File
@@ -210,7 +210,9 @@ takes a name, or as `{"Viewer":42}` and `{"ScriptPanel":77}` for viewers and Scr
`move {target, zone?, before?}`, `setStackOpen {open}`, `resizeStack {height}`,
`resizeSplit {path, size}`; `rect` is `[x, y, width, height]`). It returns
`{"docking": workspace}`. `ui.dock.reset` returns the current workspace to its saved or
built-in layout and returns the same.
built-in layout and returns the same. Raw `Open` and `OpenAt` actions are refused in both
`ui.dock {action}` and `window.panel.layout {action}`, as in `window.dockAction`; use the
panel open commands instead.
- `window.dockPanel {panel, anchor?, zone?, before?}` docks as `window.panel.dock`: `zone` is
`center`, `tab`, `left`, `right`, `top`, `bottom`, `above` or `below`; without an anchor a
side zone docks along that edge of the whole workspace. `window.floatPanel {panel, rect?}`