Skip to content

Comments

Configurable split ratio for half window actions#1712

Merged
rxhanson merged 5 commits intorxhanson:mainfrom
ispivak:main
Feb 22, 2026
Merged

Configurable split ratio for half window actions#1712
rxhanson merged 5 commits intorxhanson:mainfrom
ispivak:main

Conversation

@ispivak
Copy link
Contributor

@ispivak ispivak commented Feb 19, 2026

Summary

  • Adds configurable split ratios for the Left/Right Half and Top/Bottom Half window actions, replacing the hardcoded 50/50 split
  • Left and right halves are linked (e.g. 60% left = 40% right); same for top and bottom
  • The drag-to-snap footprint preview also reflects the configured ratio
  • Settings persist across sessions and are included in JSON config import/export

Configuration

Available in Preferences → General → ⋯ (Extra Settings) under "Half Split Ratios", or via terminal:

# Set left half to 60% width (right half will be 40%)
defaults write com.knollsoft.Rectangle horizontalSplitRatio -float 60

# Set top half to 60% height (bottom half will be 40%)
defaults write com.knollsoft.Rectangle verticalSplitRatio -float 60

Default value for both is 50 (50/50 split), so existing behavior is preserved for users who don't change it.

Test plan

  • Set Horizontal split to 60 → Left Half shortcut positions window at 60% width from left
  • Set Horizontal split to 60 → Right Half shortcut positions window at 40% width from right
  • Drag window to left/right screen edge → snap footprint preview reflects the 60/40 ratio
  • Set Vertical split to 70 → Top Half shortcut positions window at 70% height from top
  • Set Vertical split to 70 → Bottom Half shortcut positions window at 30% height from bottom
  • Export config to JSON → horizontalSplitRatio and verticalSplitRatio keys are present
  • Leave both at 50 (default) → behavior identical to before this change

🤖 Generated with Claude Code

Left/right and top/bottom half actions now support a custom split ratio
instead of the fixed 50/50. Configure via Extra Settings (⋯) in the
General preferences tab, or via terminal with horizontalSplitRatio and
verticalSplitRatio defaults (1–99, default 50). The drag-to-snap
footprint preview also reflects the configured ratio.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ispivak ispivak changed the title feat: Configurable split ratio for half window actions Configurable split ratio for half window actions Feb 19, 2026
@rxhanson
Copy link
Owner

Thanks!

  • Let's center align Half Split Ratios and right align the lines with fields, so that they are aligned with the other fields in this popover.
  • Let's remove the Claude.md. Although it looks fine, it can potentially convey an endorsement of Claude by Rectangle, and I'd prefer it stay agnostic.
  • Let's remove the change to TerminalCommands.md, as this is primarily for configurations that are not in the UI at this time.

Igor Spivak and others added 2 commits February 19, 2026 08:24
Center the section header and pin the input fields' trailing edges to
match the shortcut views, consistent with how Width Step is laid out.
Remove the half split ratio section from TerminalCommands.md since it
is now configurable in the GUI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ispivak
Copy link
Contributor Author

ispivak commented Feb 19, 2026

Done, everything should be aligned to the existing pattern. Removed claude.md from source and reverted command line changes. Thanks!

@rxhanson rxhanson merged commit 09bcbc6 into rxhanson:main Feb 22, 2026
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