Skip to content

macos: wrap spatial goto around edges#12615

Closed
tautik wants to merge 1 commit intoghostty-org:mainfrom
tautik:macos-goto-split-wrap
Closed

macos: wrap spatial goto around edges#12615
tautik wants to merge 1 commit intoghostty-org:mainfrom
tautik:macos-goto-split-wrap

Conversation

@tautik
Copy link
Copy Markdown

@tautik tautik commented May 7, 2026

fixes #8406. mirrors #10811 for macos.

spatial split navigation now wraps at the edges. first attempts the
nearest target using the existing slot geometry. if there is no
candidate in the requested direction, synthesizes a wrapped target
by shifting the current slot by one full grid in the opposite
direction and reuses the same nearest-distance logic.

verified locally: 8 new tests pass, full GhosttyTests suite green
(macos/build.nu --action test, xcode 26.4.1).

ai-assistance: partial use of claude code during implementation; i
reviewed and understand the change.

shift the current slot by one full grid in the opposite direction
and reuse the existing nearest-distance logic, mirroring the gtk
approach in ghostty-org#10811.

fixes ghostty-org#8406
@tautik tautik requested a review from a team as a code owner May 7, 2026 10:30
@ghostty-bot ghostty-bot Bot added the os/macos label May 7, 2026
@ghostty-vouch
Copy link
Copy Markdown
Contributor

ghostty-vouch Bot commented May 7, 2026

Hi @tautik, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/ghostty-org/ghostty/blob/main/CONTRIBUTING.md for more details.

@ghostty-vouch ghostty-vouch Bot closed this May 7, 2026
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.

macOS: goto_split spatial directions should wrap

1 participant