mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-20 15:51:32 +02:00
fix(cli): tag enum arg for ws layout rule cmd
This commit ensures that the final argument of the 'workspace-layout-rule' command, which takes a variant of the DefaultLayout enum, is properly labelled with the #[arg_enum] tag so that serialization and deserialization works as expected with other commands that take a DefaultLayout enum variant as an arg. fix #171
This commit is contained in:
@@ -188,8 +188,8 @@ WorkspaceCustomLayout(monitor, workspace, path) {
|
|||||||
Run, komorebic.exe workspace-custom-layout %monitor% %workspace% %path%, , Hide
|
Run, komorebic.exe workspace-custom-layout %monitor% %workspace% %path%, , Hide
|
||||||
}
|
}
|
||||||
|
|
||||||
WorkspaceLayoutRule(monitor, workspace, at_container_count, layout) {
|
WorkspaceLayoutRule(monitor, workspace, at_container_count, default_layout) {
|
||||||
Run, komorebic.exe workspace-layout-rule %monitor% %workspace% %at_container_count% %layout%, , Hide
|
Run, komorebic.exe workspace-layout-rule %monitor% %workspace% %at_container_count% %default_layout%, , Hide
|
||||||
}
|
}
|
||||||
|
|
||||||
WorkspaceCustomLayoutRule(monitor, workspace, at_container_count, path) {
|
WorkspaceCustomLayoutRule(monitor, workspace, at_container_count, path) {
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ pub struct WorkspaceLayoutRule {
|
|||||||
/// The number of window containers on-screen required to trigger this layout rule
|
/// The number of window containers on-screen required to trigger this layout rule
|
||||||
at_container_count: usize,
|
at_container_count: usize,
|
||||||
|
|
||||||
|
#[clap(arg_enum)]
|
||||||
layout: DefaultLayout,
|
layout: DefaultLayout,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user