mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-14 14:21:24 +01: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
|
||||
}
|
||||
|
||||
WorkspaceLayoutRule(monitor, workspace, at_container_count, layout) {
|
||||
Run, komorebic.exe workspace-layout-rule %monitor% %workspace% %at_container_count% %layout%, , Hide
|
||||
WorkspaceLayoutRule(monitor, workspace, at_container_count, default_layout) {
|
||||
Run, komorebic.exe workspace-layout-rule %monitor% %workspace% %at_container_count% %default_layout%, , Hide
|
||||
}
|
||||
|
||||
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
|
||||
at_container_count: usize,
|
||||
|
||||
#[clap(arg_enum)]
|
||||
layout: DefaultLayout,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user