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] Improve navigation between windows #815

Open
nikita-starostin opened this issue Oct 29, 2024 · 0 comments
Open

[Feature Request] Improve navigation between windows #815

nikita-starostin opened this issue Oct 29, 2024 · 0 comments
Labels
type: feature New feature or request

Comments

@nikita-starostin
Copy link

nikita-starostin commented Oct 29, 2024

Describe the problem/motivation

When there are many windows opened or some windows are in the fulscreen mode sometimes it takes time to navigate to the right window, so would be nice to able to achieve that with one-two keystrokes in consisten, intuitive way with easy config of glaze wm.

Describe the solution you'd like

I think config could look like this:

  #  window indexes
  

  # jump to window by index.
  # 1. despite of the current layout all windows will be displayed as small squares trying to fit all space on the screen
  # 2. every square represeting the window will be labeled with title and index from windowIndexes above
  # 3. it is possible to navigate between them with same keybindings from tiling navigation
  # 4. once window selected, the prev. layout restored and the selected window becomes active
  windowIndexes = [1,2,3,45,6,7,8,9,a,b,c,d]
  - commands: ['toggle-jump-mode']
    bindings: ['alt+shif+t']

# cycle to the next / prev window - that looks logical with jump to window if need, for example, to go back after the jump
# assuming there are three windows that were active in the next order [3,2,1] 
# pressing alt+shift+e allows to move focus to the prev window
# once focus moved the debounce timeout started
# if debounce timeout passed, the active order will look like [2,3,1] - because prev window was 2, it is now active, the 3 becomes the last prev
# before debounce time pass it possible the active order is not modified and it is possible to change focus with alt + shift + e/r in two directions
cycleDebounceTimeoutMs: 500 
- commands: ['cycle-focus-prev-window']
    bindings: ['alt+shif+e']
# cycle to the next. active window 
cycleTimeoutMs: 500 
- commands: ['cycle-focus-next-window']
    bindings: ['alt+shif+r']
  

Alternatives considered

the similar could achieved with autohotkey and alt + tab, alt + shift tab, win + tab, that I am pretty happy :)
But small disadvantages are:

  1. complicated config - the one glazewm file looks simpler
  2. need 3rd party autohotkey
  3. not consistent behavior, for example, win + tab, have to use arrows, when would like to use alt + j, as in glazewm tiles
@nikita-starostin nikita-starostin added the type: feature New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
Status: 📬 Needs triage
Development

No branches or pull requests

1 participant