Repository navigation
Conversation
|
Congratulations on your new Raycast extension! 🚀 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
Greptile SummaryAdds Flip Scroll, a macOS-only no-view command that instantly toggles the global natural-scrolling preference through the private PreferencePanesSupport framework.
Confidence Score: 5/5The PR appears safe to merge, with no concrete current failure identified in the new extension. The command has a matching manifest entry, uses fixed executable paths and arguments, handles execution failures with user-visible feedback, and includes the expected extension metadata and locked dependencies. Important Files Changed
Reviews (1): Last reviewed commit: "Create Flip Scroll extension" | Re-trigger Greptile |
0xdhrv
left a comment
There was a problem hiding this comment.
Thanks for your contribution 🔥
We already have an extension in the Store that covers the same core functionality:
Both are a single no-view command that toggles macOS natural scrolling so you can switch between trackpad and mouse without digging through System Settings.
The existing extension already provides:
- Change Scroll Direction, a no-view toggle between "natural" and "mouse-friendly"
- Immediate apply via System Settings UI automation, including a Tahoe-specific script
This PR adds some useful capabilities:
- Applies the same preference through
setSwipeScrollDirectioninstead of opening System Settings - No Accessibility permission, and no full-domain
activateSettingsrefresh that can steal ⌘Space - A HUD that reports the new state (trackpad vs mouse)
However, these appear to be natural enhancements to the existing extension rather than enough differentiation for a separate extension with the same primary workflow.
Could we consider contributing the live PreferencePanesSupport toggle to the existing extension instead?
This would help avoid duplication and keep scroll-direction toggling consolidated in one extension.
As mentioned in our extension guidelines here ↗
|
Thanks for the detailed review — agreed, the primary workflow does overlap, so I'm happy What I'd bring over:
Heads up that this replaces the command's implementation end to end, so expect a rewrite One separate, entirely optional question for @gregoralbrecht: I drew an icon for this Would you prefer I close this PR and open a fresh one against |
Thanks for understanding ❤️ You can create a new PR for the existing extension, and I advise to backup this branch if you want to |
Description
Adds Flip Scroll — a single no-view command that toggles macOS natural scrolling,
for switching between trackpad and mouse without opening System Settings.
On the approach
The command calls
setSwipeScrollDirectionfrom the privatePreferencePanesSupportframework via JXA. Since that is a private API, here is why:
defaults write -g com.apple.swipescrolldirectionalone does not take effect untilthe next login. It appears to work only while System Settings is open, because that
app applies the change for you.
activateSettings -udoes apply it, but it re-applies the entire global preferencedomain including the keyboard context. That re-registers the system symbolic hotkeys
and can hand ⌘Space back to Spotlight on every toggle.
setSwipeScrollDirectionis the function the Trackpad pane itself calls and changesonly this one setting. No window opens, no Accessibility permission is required.
Verified on macOS 26 (Tahoe).
Screencast
The command has no UI — it runs and shows a HUD. Screen recording below shows a page
scrolled in one direction, the hotkey pressed, and the same gesture scrolling the
opposite way.
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder