add document for movetoroot layout message (#789)

This commit is contained in:
Luke Chen 2024-09-29 09:48:03 -04:00 committed by GitHub
parent 593d4d1ba4
commit b9f91191e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 | | 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 | | 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 | | 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.: e.g.: