feat(wm): allow resize-axis for custom primary col

This commit allows the resize-axis cmd on Axis::Horizontal to operate on
the Primary column of a CustomLayout.

Note that this will only operate on a CustomLayout that has met the
window count threshold to enable the tertiary column. If it has not, the
layout will render as DefaultLayout::Columns, which does not support the
resize-axis cmd.
This commit is contained in:
LGUG2Z
2021-11-03 10:04:48 -07:00
parent 71e28b33e3
commit 4d7ccc5519
7 changed files with 104 additions and 57 deletions

View File

@@ -14,7 +14,7 @@ edition = "2021"
derive-ahk = { path = "../derive-ahk" }
komorebi-core = { path = "../komorebi-core" }
clap = "3.0.0-beta.5"
clap = { version = "3.0.0-beta.5", features = ["wrap_help"] }
color-eyre = "0.5"
dirs = "4"
fs-tail = "0.1"

View File

@@ -400,7 +400,7 @@ enum SubCommand {
#[clap(setting = AppSettings::ArgRequiredElseHelp)]
#[clap(alias = "resize")]
ResizeEdge(Resize),
/// Resize the focused window along the specified axis
/// Resize the focused window or primary column along the specified axis
#[clap(setting = AppSettings::ArgRequiredElseHelp)]
ResizeAxis(ResizeAxis),
/// Unstack the focused window