This PR adds the focused-workspace-layout value for komorebic query:
for DefaultLayout: returns enum name.to_string,
for CustomLayout: returns "Custom"
for floating workspaces: returns "None"
Initially I hoped this could return values in snake case fashion so it would be chainable with komorebic change-layout, but I do think that these should not be tied by default, whoever wants to tinker with this (me 😄) should handle it some other way.
This is my first Rust ever so I hope everything is according to the correct practices.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/1392
**Author:** [@zepocas](https://github.com/zepocas)
**Created:** 4/2/2025
**Status:** ✅ Merged
**Merged:** 4/3/2025
**Merged by:** [@LGUG2Z](https://github.com/LGUG2Z)
**Base:** `master` ← **Head:** `feature/query-focused-workspace-layout`
---
### 📝 Commits (2)
- [`ac85542`](https://github.com/LGUG2Z/komorebi/commit/ac8554248b21f831d74ba8937907654ef878fc4b) feat(cli): add focused-workspace-layout query
- [`394d1ef`](https://github.com/LGUG2Z/komorebi/commit/394d1efa5f7d2643b78f05e56686f045790f1e76) docs(cli): added focused-workspace-layout as possible value for komorebic query
### 📊 Changes
**4 files changed** (+25 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `docs/cli/query.md` (+1 -1)
📝 `komorebi/src/core/mod.rs` (+1 -0)
📝 `komorebi/src/monitor.rs` (+10 -0)
📝 `komorebi/src/process_command.rs` (+13 -0)
</details>
### 📄 Description
<!--
Please follow the Conventional Commits specification.
If you need to update your PR with changes from `master`, please run `git rebase master`.
By opening this PR, you confirm that you have read and understood this project's `CONTRIBUTING.md`.
-->
### This PR adds the `focused-workspace-layout` value for komorebic query:
- for DefaultLayout: returns enum name.to_string,
- for CustomLayout: returns "Custom"
- for floating workspaces: returns "None"
Initially I hoped this could return values in snake case fashion so it would be chainable with `komorebic change-layout`, but I do think that these should not be tied by default, whoever wants to tinker with this (me 😄) should handle it some other way.
This is my first Rust ever so I hope everything is according to the correct practices.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1392
Author: @zepocas
Created: 4/2/2025
Status: ✅ Merged
Merged: 4/3/2025
Merged by: @LGUG2Z
Base:
master← Head:feature/query-focused-workspace-layout📝 Commits (2)
ac85542feat(cli): add focused-workspace-layout query394d1efdocs(cli): added focused-workspace-layout as possible value for komorebic query📊 Changes
4 files changed (+25 additions, -1 deletions)
View changed files
📝
docs/cli/query.md(+1 -1)📝
komorebi/src/core/mod.rs(+1 -0)📝
komorebi/src/monitor.rs(+10 -0)📝
komorebi/src/process_command.rs(+13 -0)📄 Description
This PR adds the
focused-workspace-layoutvalue for komorebic query:Initially I hoped this could return values in snake case fashion so it would be chainable with
komorebic change-layout, but I do think that these should not be tied by default, whoever wants to tinker with this (me 😄) should handle it some other way.This is my first Rust ever so I hope everything is according to the correct practices.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.