mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-21 08:11:30 +02:00
feat(wm): add visual feedback for preselection
This commit adds visual feedback in the form of a ghost tile for preselections made by the preselect-direction command. A container with the id "PRESELECT" will be added to the workspace, and replaced when the next manage-able window is spawned. A new command, cancel-preselect, has been added to remove both the preselection index and the ghost tile if the user changes their mind.
This commit is contained in:
@@ -1099,6 +1099,8 @@ enum SubCommand {
|
||||
/// Preselect the specified direction for the next window to be spawned on supported layouts
|
||||
#[clap(arg_required_else_help = true)]
|
||||
PreselectDirection(PreselectDirection),
|
||||
/// Cancel a workspace preselect set by the preselect-direction command, if one exists
|
||||
CancelPreselect,
|
||||
/// Minimize the focused window
|
||||
Minimize,
|
||||
/// Close the focused window
|
||||
@@ -2045,6 +2047,9 @@ fn main() -> eyre::Result<()> {
|
||||
SubCommand::PreselectDirection(arg) => {
|
||||
send_message(&SocketMessage::PreselectDirection(arg.operation_direction))?;
|
||||
}
|
||||
SubCommand::CancelPreselect => {
|
||||
send_message(&SocketMessage::CancelPreselect)?;
|
||||
}
|
||||
SubCommand::CycleFocus(arg) => {
|
||||
send_message(&SocketMessage::CycleFocusWindow(arg.cycle_direction))?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user