mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #676] [MERGED] feat(wm): add grid layout #1048
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/676
Author: @javierportillo
Created: 2/19/2024
Status: ✅ Merged
Merged: 2/25/2024
Merged by: @LGUG2Z
Base:
master← Head:feature/grid-layout📝 Commits (6)
ba59fe3feat(wm): add grid layout8e91bd1feat(grid): adds no-operations for Promote and PromoteFocus commands37f3537fix(grid): prevents axis flips on grid layoutca6c2f8refactor(grid): use matches! for early returnsb4f38aefeat(wm): passes optional op_direction and count to _index functions9926227fix(grid): enables flip_layout and make it behave correctly📊 Changes
4 files changed (+202 additions, -26 deletions)
View changed files
📝
komorebi-core/src/arrangement.rs(+52 -0)📝
komorebi-core/src/default_layout.rs(+5 -2)📝
komorebi-core/src/direction.rs(+129 -20)📝
komorebi/src/window_manager.rs(+16 -4)📄 Description
Adds a new layout based on the Grid layout on LeftWM.
Things I would Like to discuss that I'm not so sure about:
I needed to add the
op_directionandcountto theDirectiontrait to be able to calculate the grid neighbor, causing it to also be passed to the CustomLayout operations, but left unused.Also, I had to add a couple of
#[allow(clippy::cast_possible_truncation)]insted of actually solving the casting problems. I'm too much of a rust newbie to deal with that so I please tell me if I can do something about it, other than that I hope It is actually usable and shipable.Thank you so much for Komorebi in general, I used to love using i3 on Arch (btw) but had to switch to Windows and I really missed a tiling WM, so Komorebi has been a blessing to me. Thanks!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.