Files
coucou/scripts/test-island-hover.sh
ClaudeandFelix Schwarz 0ad1b1d4eb Open on hover (opt-in)
Settings → General → Behavior → Open on hover. Hovering the island opens it
instead of only peeking; an island opened that way folds 0.6 s after the
pointer leaves. A click inside turns it into a normal open island (the usual
auto-close delay), and a pending approval or an alert keeps it as before.
Off by default: nothing changes for anyone who doesn't turn it on.

The poll loop now records the pointer's position before feeding the state
machine, so a transition triggered by the hover no longer starts a close
timer while the pointer is still on the island.

Idea and first version from Felix Schwarz's fork (codex/notch-hover-pin);
five forks built this independently.

Co-authored-by: Felix Schwarz <felix.schwarz@icloud.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-08 13:11:53 +02:00

10 lines
369 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-island-hover.XXXXXX")"
trap 'rm -rf "$TEST_DIR"' EXIT
swiftc -swift-version 6 -strict-concurrency=complete \
NotchBuddy/Sources/App/IslandStateMachine.swift \
tests/IslandHoverTests.swift -o "$TEST_DIR/island-hover-tests"
"$TEST_DIR/island-hover-tests"