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

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

Closed
Perlten opened this issue Aug 17, 2024 · 3 comments
Closed

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

Perlten opened this issue Aug 17, 2024 · 3 comments
Labels
feature-proposal A well defined feature proposal good-first-issue Easy to fix issues. Good for newcomers

Comments

@Perlten
Copy link
Contributor

Perlten commented Aug 17, 2024

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
Copy link
Owner

nikitabobko commented Aug 18, 2024

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.

@nikitabobko nikitabobko added feature-proposal A well defined feature proposal good-first-issue Easy to fix issues. Good for newcomers labels Aug 18, 2024
@nikitabobko nikitabobko changed the title Feature Request: Implement window indexing for consistent window switching Feature Request: Implement focus --dfs-index Aug 18, 2024
@Perlten
Copy link
Contributor Author

Perlten commented Aug 26, 2024

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

nikitabobko added a commit that referenced this issue Aug 27, 2024
#427
closes #464

Co-authored-by: Nikita Bobko <[email protected]>
@nikitabobko
Copy link
Owner

Released in 0.15.0-Beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-proposal A well defined feature proposal good-first-issue Easy to fix issues. Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants