Skip to content

Implement the swap command.#1245

Closed
rickyz wants to merge 2 commits intonikitabobko:mainfrom
rickyz:swap
Closed

Implement the swap command.#1245
rickyz wants to merge 2 commits intonikitabobko:mainfrom
rickyz:swap

Conversation

@rickyz
Copy link
Copy Markdown
Collaborator

@rickyz rickyz commented Mar 29, 2025

aerospace swap swaps the currently focused window with a window in a
cardinal direction or with the next/prev window in the depth first order
of windows in the workspace.

Target window selection works identically to the focus command (so the
cardinal directions respect MRU).

_fixes #8

rickyz added 2 commits March 29, 2025 08:59
This allows switching to the next/prev window from the current one in
the depth-first order of the windows in the current workspace tree.

This is convenient, as it allows users to shift focus through a
workspace's windows in a more predictable way than the directional
movement commands, where the move target can depend on invisible
most-recently-used state.

_fixes nikitabobko#248
`aerospace swap` swaps the currently focused window with a window in a
cardinal direction or with the next/prev window in the depth first order
of windows in the workspace.

Target window selection works identically to the focus command (so the
cardinal directions respect MRU).

_fixes nikitabobko#8
@rickyz rickyz closed this Mar 29, 2025
@rickyz rickyz deleted the swap branch March 29, 2025 16:17
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

Successfully merging this pull request may close these issues.

1 participant