nikitabobko / AeroSpace

AeroSpace is an i3-like tiling window manager for macOS
https://nikitabobko.github.io/AeroSpace/guide
MIT License
5.5k stars 88 forks source link

Feature Request: Implement `focus --dfs-index` #427

Open Perlten opened 3 weeks ago

Perlten commented 3 weeks ago

Hi great project, love to see a window manager that avoids using MacOs spaces.

Some Linux window managers, such as Qtile, provide the ability to switch between windows using an "index" system, similar to how workspace switching currently works. The method for assigning these indices is flexible, but one approach could be to start from the top-left corner as index 1 and proceed in a left-to-right, top-to-bottom order, similar to reading a book. Implementing this feature would allow users to consistently switch to a specific window without needing to consider the current focused window's position relative to the desired window.

For an accordion layout, the index could initially be determined by the order in which windows first appear in the workspace. However, it would be even more user-friendly if users could set the index for each window themselves and have the option to change it using keybinds

I hope this makes sense, and thank you for the amazing work!

nikitabobko commented 3 weeks ago

Please don't ignore the checklist in the issue template.

The request itself makes sense, and matches nicely with #248

I don't mind if somebody implements it in the following way:

aerospace focus --dfs-index <index>

I don't plan to work on it.

Perlten commented 2 weeks ago

Seems like a good solution using dfs. I could implement the feature and submit a PR.