Currently there is e.g. "recent" but no explicit "current" option as a selection value referring to the currently active window/space/display.
For some commands, like yabai -m query if there is no selection specified it will default to the current one.
For other commands though, this won't work. E.g. if I wanted to move a window to the current space sth like yabai -m window WIN_SELECTION --space won't work (no space specified).
I'd propose adding a new possible value recent within WINDOW_SEL/DISPLAY_SEL/SPACE_SEL (and potentially also an alias . for convenience), so that commands like these would be possible:
yabai -m query --windows --window current
yabai -m window 1234 --space current
...
This would have some extra benefits like:
Easier to be explicit than remembering if a certain SEL argument is optional or not (defaulting to current)
Easier to deal with shell completion helpers when args are always provided explicitly
This is "current" yabai -m query --windows --window
But as for window selection by account, agreed, would be preferable for scripting. That Golden sections logic doesn't work mostly, especially for scripts.
Currently there is e.g. "recent" but no explicit "current" option as a selection value referring to the currently active window/space/display.
For some commands, like
yabai -m query
if there is no selection specified it will default to the current one. For other commands though, this won't work. E.g. if I wanted to move a window to the current space sth likeyabai -m window WIN_SELECTION --space
won't work (no space specified).I'd propose adding a new possible value
recent
within WINDOW_SEL/DISPLAY_SEL/SPACE_SEL (and potentially also an alias.
for convenience), so that commands like these would be possible:This would have some extra benefits like:
Thoughts?