Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add command set-tiling-direction [vertical|horizontal] #702

Merged
merged 2 commits into from
Sep 1, 2024

Conversation

JonasWischeropp
Copy link
Contributor

I added the two commands set-tiling-direction-vertical and set-tiling-direction-horizontal
in order to be able to set the tiling direction faster and in the same way it is done in i3wm.
When using toggle-tiling-direction one always has to identify the current direction first.

Let me know what you think. Specially whether using panic! here is the right method:
https://github.com/JonasWischeropp/glazewm/blob/3c3fd07cd667c7e6165aa422d144e88ee0858af0/packages/wm/src/containers/commands/toggle_tiling_direction.rs#L110

Thank you for this amazing window manager.

@lars-berger
Copy link
Member

Thanks for the pr 🙌 was looking to get this added at some point

Added some minor fixups otherwise lgtm

@JonasWischeropp
Copy link
Contributor Author

JonasWischeropp commented Aug 31, 2024

Thank you for the feedback. I have adjusted the code accordingly.

@JonasWischeropp JonasWischeropp changed the title feat: add commands set-tiling-direction-vertical and set-tiling-direction-horizontal feat: add command set-tiling-direction [vertical|horizontal] Aug 31, 2024
@lars-berger lars-berger merged commit ee86fbf into glzr-io:main Sep 1, 2024
@lars-berger
Copy link
Member

Awesome, thank you ❤️

Copy link

🎉 This PR is included in version 3.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants