Skip to content

feat: move windows by dragging workspace icons - #271

Merged
M4n0x merged 5 commits into
mainfrom
t3/drag-icons-between-workspaces
Oct 23, 2026
Merged

M4n0x merged 5 commits into
mainfrom
t3/drag-icons-between-workspaces

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Workspace icons can switch workspaces or focus windows, but cannot move them to another workspace. Closes #270.

Changes

  • Drag an app icon to move its windows from the source workspace, or a per-window item to move only that window. Empty workspaces appear during dragging and the destination is outlined, including across displays.
  • Preserve clicks, cancel on Escape or outside drops, reject stale or repeated drops, and refresh after successful or partial moves.
  • Enable drag controls, drop targets and move commands only for AeroSpace and yabai; switching managers cancels the drag. Update the guide without adding configuration properties.

Testing

  • swift test: all 733 tests passed (290 XCTest tests and 443 Swift Testing tests), including both managers, cancellation, unsupported sources and offscreen icon placement. Move tests await the operation before checking snapshots or tearing down fixtures.
  • Offscreen before/after renders below. Window-manager commands use fixtures; live AeroSpace/yabai interaction and physical dragging across displays were not manually exercised.
  • Commit messages checked with commitlint; git diff --check passed.

Before moving the first document:

Before: all three windows belong to workspace 1

During dragging, empty workspace 2 becomes a highlighted target:

During dragging: workspace 2 is outlined

After the move, workspace 1 keeps focus:

After: the first document belongs to workspace 2

Merging

Merge or rebase. Squashing with this PR title is also safe.

gpt-6.1-sol via Codex in T3 Code.

@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 23, 2026 09:35
The full suite can keep the main actor busy beyond the fixture's wall-clock
deadline. Return the accepted move's completion task and await it before
checking the snapshot or tearing down the fixture.
@Seb-GRAF

Copy link
Copy Markdown
Collaborator

let's goooooo

M4n0x added 3 commits October 23, 2026 12:02
Keep the OmniWM workspace integration and shared command handling from main.
Verify that changing to OmniWM or Spaces disables window dragging.
Preserve both the workspace drag instructions and the new Essentials guide.
Snapshot queries run in parallel, so their printf calls can interleave in a
shared append log. Write one record per process and collect them after the
move finishes, keeping the command-count assertion intact.
@M4n0x
M4n0x merged commit 917a046 into main Oct 23, 2026
7 checks passed
@M4n0x
M4n0x deleted the t3/drag-icons-between-workspaces branch October 23, 2026 10:20
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move windows between workspaces by dragging their icons

2 participants