Skip to content

Add full-height vertical eighth window actions - #1873

Merged
rxhanson merged 2 commits into
rxhanson:mainfrom
Soren90912:feature/vertical-eighths
Oct 5, 2026
Merged

rxhanson merged 2 commits into
rxhanson:mainfrom
Soren90912:feature/vertical-eighths

Conversation

@Soren90912

@Soren90912 Soren90912 commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Updates the full-height Vertical Eighth feature to address the latest maintainer feedback on PR #1873.

The 8 actions remain available for Terminal/UserDefaults shortcut configuration, but are no longer exposed in the normal in-app shortcut UI, status menu, or Snap Area picker. The feature-specific custom icons have been removed.

Behavior

  • Landscape displays use 8 full-height vertical columns across the visible frame.
  • Portrait displays use the existing OrientationAware path and rotate the eighths into 8 full-width horizontal rows.
  • Repeating firstVerticalEighth cycles forward through positions 1 → 8 → 1 when repeated-command behavior is enabled.
  • Repeating lastVerticalEighth cycles backward through positions 8 → 1 → 8.
  • Middle Vertical Eighth actions remain fixed to their own positions.
  • Boundary-based rounding prevents cumulative gaps or overlap for non-divisible display dimensions.
  • Gap metadata follows the actual ordinal and orientation through the resulting SubWindowAction.

Action IDs

Existing upstream IDs are preserved:

  • tileRows = 129
  • tileColumns = 130
  • cycleStackedWindows = 131
  • cycleStackedWindowsBackward = 132

Vertical Eighth actions now use stable IDs 133–140.

The existing 4x2 eighth actions and behavior are unchanged.

Configuration

The actions remain in WindowAction.active, so shortcuts can still be configured using their UserDefaults keys:

  • firstVerticalEighth
  • secondVerticalEighth
  • thirdVerticalEighth
  • fourthVerticalEighth
  • fifthVerticalEighth
  • sixthVerticalEighth
  • seventhVerticalEighth
  • lastVerticalEighth

TerminalCommands.md now documents the configuration and repeated endpoint behavior.

Validation

  • TDD RED observed for the new cycling, portrait orientation, orientation-specific gap metadata, and hidden-UI behavior.
  • Vertical Eighth targeted tests: pass.
  • Existing 4x2 eighth regression tests: pass.
  • Debug build: pass.
  • Release build: pass.
  • git diff --check: pass.
  • Full test target still hits the pre-existing RectangleTests/DisplayTransferTests.swift compile mismatch on current upstream/main:
    cannot convert return expression of type (rect: CGRect, sharedEdges: Edge) to return type CGRect
  • Full suite excluding only that pre-existing test source: pass.
  • DisplayTransfer production/test code was not modified by this PR update.

@rxhanson

Copy link
Copy Markdown
Owner

Thanks for re-submitting. In order to merge this one in, we need the following three items addressed to make this look and behave like the rest of the app:

  1. The icons still need more work to look like the other icons. I think there was a misunderstanding, so perhaps it's best if you simply reference the existing icons. Alternatively, you can remove the icons and leave these additional shortcuts out of the UI - in which case they could be configured using Terminal commands. This is probably my preferred route at this point.
  2. When a user repeats the shortcut for the first eighth, it should cycle through all of the eighths. When a user repeats the shortcut for the last eighth, it should cycle through all in reverse.
  3. When on a portrait-oriented display, the eighths should be rotated so that they are horizontal. There's an OrientationAware protocol for this.

@Soren90912
Soren90912 force-pushed the feature/vertical-eighths branch from e1aa295 to d1b4cc3 Compare October 3, 2026 14:22
@Soren90912

Copy link
Copy Markdown
Contributor Author

Manual verification completed:

  • Vertical Eighth actions are hidden from Shortcuts Settings
  • Hidden from the status menu
  • Hidden from the Snap Area picker
  • Repeated firstVerticalEighth shortcut cycles forward through all 8 positions correctly on a landscape display
  • Portrait behavior is covered by automated tests, but I don't currently have a portrait display available for manual verification

Everything else in the updated PR remains unchanged.

@rxhanson
rxhanson merged commit 70916c9 into rxhanson:main Oct 5, 2026
1 check failed
rxhanson pushed a commit that referenced this pull request Oct 18, 2026
* Add full-height vertical sixth window actions

Adds six actions (firstVerticalSixth through lastVerticalSixth) that
divide the screen into six full-height columns, rotating into six rows
on portrait displays. Repeating the first/last action cycles through
the positions, mirroring the vertical eighths from #1873.

The actions are listed under Extra in the Shortcuts settings and are
excluded from the menu bar menu and drag-to-snap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KcDrVnWTQAkGQK9UYb1muc

* Add icons for the vertical sixth actions

Six 30x20 template icons in the style of the existing position icons.
The 28px interior is split 4/5/5/5/5/4 so adjacent pairs line up with
the 9/10/9 thirds icons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KcDrVnWTQAkGQK9UYb1muc

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants