Fix focus=false for move-column-to-workspace*, add to move-window-to-workspace-up/down

This commit is contained in:
gibberish
2025-06-16 17:23:29 +07:00
committed by Ivan Molodetskikh
parent f6f4bf97c3
commit e038b8770a
8 changed files with 122 additions and 41 deletions
+16 -2
View File
@@ -447,9 +447,23 @@ pub enum Action {
/// Focus the previous workspace.
FocusWorkspacePrevious {},
/// Move the focused window to the workspace below.
MoveWindowToWorkspaceDown {},
MoveWindowToWorkspaceDown {
/// Whether the focus should follow the target workspace.
///
/// If `true` (the default), the focus will follow the window to the new workspace. If
/// `false`, the focus will remain on the original workspace.
#[cfg_attr(feature = "clap", arg(long, action = clap::ArgAction::Set, default_value_t = true))]
focus: bool,
},
/// Move the focused window to the workspace above.
MoveWindowToWorkspaceUp {},
MoveWindowToWorkspaceUp {
/// Whether the focus should follow the target workspace.
///
/// If `true` (the default), the focus will follow the window to the new workspace. If
/// `false`, the focus will remain on the original workspace.
#[cfg_attr(feature = "clap", arg(long, action = clap::ArgAction::Set, default_value_t = true))]
focus: bool,
},
/// Move a window to a workspace.
#[cfg_attr(
feature = "clap",