asmvik / asmvik/yabai

[Feature Request] Expand recent workspace navigation behavior

Open
#2,518 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
29.6k
Forks
758
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the existing `yabai -m space --focus recent` command and its workspace navigation entry point. The requested behavior is complete when `recent.last`, `recent.next`, and a clear command support the illustrated workspace history, including insertion after the current location and configurable history size.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.