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] Expand recent workspace navigation behavior #2518

Open
kanghengliu opened this issue Jan 15, 2025 · 0 comments
Open

[Feature Request] Expand recent workspace navigation behavior #2518

kanghengliu opened this issue Jan 15, 2025 · 0 comments

Comments

@kanghengliu
Copy link

It would be nice if the command yabai -m space --focus recent can be expanded to navigate across the recently visited workspaces!

For example:

I've visited workspace 1 -> 5 -> 3[I'm Here Now],

  • by executing yabai -m space --focus recent.last once, I can go to workspace 5.
  • by executing the command again, I can go to workspace 1.

Now workspace stack should look like this: 1[I'm Here Now] -> 5 -> 3

  • by executing yabai -m space --focus recent.next once, I can go to workspace 5.
  • by executing the command again, I can go to workspace 3

If I visit another workspace (say 4) in this state: 1[I'm Here Now] -> 5 -> 3

  • 4 is inserted after the current location: 1 -> 4[I'm Here Now] -> 5 -> 3

The jump stack has a configurable amount of memory, and can be forcibly cleared via yabai -m space --clear or similar command.

Reason: When many workspaces are present, i found myself constantly trying to remember the jumps across workspaces, trying to find the last used, and the second to last used workspace.

Thank you for such a powerful tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant