koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
22.48k stars 630 forks source link

Add support for selecting the nth window in a stack #2295

Closed jcelaya775 closed 1 week ago

jcelaya775 commented 1 month ago

This allows you to specify a window in a stack via its index (1 through 9) in a stack. For example yabai -m window --focus stack.third.

kiprasmel commented 1 week ago

why overcomplicate the code with verbs second, third, etc, when could use a number instead, i.e. stack.2, stack.3, etc? would allow arbitrary amount of numbers too.

koekeishiya commented 1 week ago

implemented on master https://github.com/koekeishiya/yabai/commit/84a41c990ac746e0f0b277f43b61e75c4175a436 #2342