mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #405] [MERGED] Feat/initial window rule #911
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/405
Author: @alvint91
Created: 4/22/2023
Status: ✅ Merged
Merged: 4/30/2023
Merged by: @LGUG2Z
Base:
master← Head:feat/initial-window-rule📝 Commits (4)
c032e90feat(workspace-rule): add ability to only apply workspace rule on first6a2d65cstyle: cargo +nightly fmt --all2eb6419refactor(workspace_rules): reduce code duplication15601a2feat(workspace-rules): add InitialWorkspaceRule and InitialNamedWorkspaceRule command📊 Changes
6 files changed (+178 additions, -45 deletions)
View changed files
📝
komorebi-core/src/lib.rs(+2 -0)📝
komorebi/src/main.rs(+1 -1)📝
komorebi/src/process_command.rs(+56 -11)📝
komorebi/src/process_event.rs(+8 -0)📝
komorebi/src/window_manager.rs(+66 -33)📝
komorebic/src/main.rs(+45 -0)📄 Description
I believe should Resolves #263
Added a flag
-a or --apply-on-first-show-onlyto workspace and named workspace rules to only enforce window placement on first show. Closing and reopening window, will enforce the rule again.Made it default to false to preserve old behavior so it should be a "opt in" thing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.