-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Feature Request: Implement list-windows --sort-by
#491
Comments
(1) I'd prefer a different interface: Because it can evolve to more options in the future:
(2) Feature interaction with floating windows is unclear. I think that
Now it's a question, what does |
It would be logical to use the interface as --sort dfs, as it clearly aligns with the intended functionality. As for whether floating windows should be included in the output, I believe it’s best to include them. This is primarily because the focus command also incorporates them, ensuring consistency in how both commands handle window management. But like |
After thinking about it in background for a couple of days I see no other reasonable way to sort floating windows in DFS order other than the way Though I realized that I'd better to rename
@Perlten you are certainly interested in "all things dfs" :) I'd appreciate your PR shall you decide to submit it. I'd be cool to support at least two sorting options. DFS + something else to make the flag synopsis more clear |
Who does not jump at the change to write some code that might include recursion :) |
list-windows --dfs-order
to Query Workspace Window Structure in DFS Orderlist-windows --sort-by
Just adding to this thread to say I'm interested. My use case would be window cycling when sorted by recently focused. Since I doubt that this is something easy to achieve from within Aerospace, I'll probably aim to get there with some external tools like Hammerspoon and Emacs. Anyhow, I look forward to seeing what comes from this thread regardless. |
chiming in to +1: |
Now that we have the
focus --dfs-index <index>
command, it would be fantastic to extend this by allowing us to query the structure of a workspace's windows from a DFS perspective. A command likelist-windows --dfs-order
would be ideal for this purpose.The output could follow the same format as the existing
list-windows
command, but it should be ordered as if a DFS (Depth-First Search) was performed on the workspace. See the example below.h_tiles
├── window (index: 0)
├── v_tiles
| ├── window (index: 1)
| └── window (index: 2)
├── window (index: 3)
I realize this is similar to the functionality proposed in #16, but I believe this request is still valid. It specifically focuses on the DFS ordering of windows, disregarding how they are otherwise structured within the tree.
Checklist
I've searched for duplicates. My search queries were (please don't forget to search in closed issues too):
I've read the documentation https://nikitabobko.github.io/AeroSpace/guide & https://nikitabobko.github.io/AeroSpace/commands
I've searched in the documentation. My search queries were:
The text was updated successfully, but these errors were encountered: