From b9f91191e348b60725af7aaa3e1f6836668550ba Mon Sep 17 00:00:00 2001 From: Luke Chen <3363954+LukeXuan@users.noreply.github.com> Date: Sun, 29 Sep 2024 09:48:03 -0400 Subject: [PATCH] add document for `movetoroot` layout message (#789) --- pages/Configuring/Dwindle-Layout.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/Configuring/Dwindle-Layout.md b/pages/Configuring/Dwindle-Layout.md index ed05fb0..cfb2e87 100644 --- a/pages/Configuring/Dwindle-Layout.md +++ b/pages/Configuring/Dwindle-Layout.md @@ -46,6 +46,7 @@ Dispatcher `layoutmsg` params: | togglesplit | toggles the split (top/side) of the current window. `preserve_split` must be enabled for toggling to work. | none | | swapsplit | swaps the two halves of the split of the current window. | none | | preselect | A one-time override for the split direction. (valid for the next window to be opened, only works on tiled windows) | direction | +| movetoroot | moves the selected window (active window if unspecified) to the root of its workspace tree. The default behavior maximizes the window in its current subtree. If `unstable` is provided as the second argument, the window will be swapped with the other subtree instead. It is not possible to only provide the second argument, but `movetoroot active unstable` will achieve the same result. | [window, [ string ]] | e.g.: