Skip to content

Raycast Support#242

Merged
stonerl merged 9 commits intomainfrom
feat/url-scheme-raycast
Mar 9, 2026
Merged

Raycast Support#242
stonerl merged 9 commits intomainfrom
feat/url-scheme-raycast

Conversation

@diazdesandi
Copy link
Copy Markdown
Collaborator

@diazdesandi diazdesandi commented Mar 2, 2026

What does this PR do?

Adds a thaw:// URL scheme to enable external applications to trigger
Thaw actions programmatically. This is the foundation for a Raycast
extension and any future third-party integrations.

PR Type

  • Feature

Does this PR introduce a breaking change?

  • No

What is the current behavior?

Thaw has no external IPC surface, no URL scheme, no AppleScript
dictionary, no way for external tools to trigger actions.

What is the new behavior?

Registers thaw:// in Info.plist and implements a URL handler in
AppDelegate that dispatches to existing HotkeyAction calls:

  • thaw://toggle-hidden — toggle the hidden section
  • thaw://toggle-always-hidden — toggle the always-hidden section
  • thaw://search — open the search panel
  • thaw://toggle-thawbar — toggle the Thawbar on the active display
  • thaw://toggle-application-menus — toggle application menus
  • thaw://open-settings — open the settings window

PR Checklist

  • I've built and run the app locally
  • I've checked for console errors or crashes
  • I've run relevant tests and they pass
  • I've added or updated tests (if applicable)
  • I've updated documentation as needed
  • I've verified localized strings work correctly (if i18n/l10n changes)

Notes for reviewers

Please verify the enableIceBar action in HotkeyAction actually toggles
state — if it only enables, the URL should be renamed or the action
swapped for a proper toggle.

@diazdesandi diazdesandi self-assigned this Mar 2, 2026
@diazdesandi diazdesandi added the feature New capability that did not exist before label Mar 2, 2026
@diazdesandi diazdesandi added this to the 1.2.0 milestone Mar 4, 2026
@diazdesandi diazdesandi marked this pull request as ready for review March 8, 2026 09:57
@diazdesandi diazdesandi changed the title [WIP] Raycast Support Raycast Support Mar 8, 2026
@diazdesandi
Copy link
Copy Markdown
Collaborator Author

diazdesandi commented Mar 8, 2026

Ready for review and test.

image

How to test
Thaw for Raycast

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a thaw:// custom URL scheme and an AppDelegate URL event handler so external tools (e.g., Raycast) can trigger existing Thaw actions, plus a small state tweak to keep “application menus hidden” from being automatically undone after a manual toggle.

Changes:

  • Register thaw URL scheme in Info.plist.
  • Add kAEGetURL AppleEvent handling in AppDelegate to dispatch thaw://… routes to HotkeyAction / settings.
  • Track “manual” application-menu hiding to prevent automatic section-state logic from re-showing menus.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
Thaw/Resources/Info.plist Registers the thaw URL scheme for external invocation.
Thaw/Main/AppDelegate.swift Installs an AppleEvent URL handler and dispatches supported thaw:// routes to actions.
Thaw/MenuBar/MenuBarManager.swift Adds a manual-hide flag so app-menu hiding isn’t automatically reverted after explicit toggles.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Thaw/Main/AppDelegate.swift
Comment thread Thaw/MenuBar/MenuBarManager.swift
Comment thread Thaw/Main/AppDelegate.swift Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@stonerl
Copy link
Copy Markdown
Owner

stonerl commented Mar 9, 2026

LGTM. Since I do not use Raycast I cannot test this myself, will be in the next beta so people can test with your Raycast extension. I let you know beforehand.

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 9, 2026

@stonerl I've opened a new pull request, #254, to work on those changes. Once the pull request is ready, I'll request review from you.

…ailed hide (#254)

* fix: only set isManuallyHidingApplicationMenus after successful hide
---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stonerl <2091312+stonerl@users.noreply.github.com>
@stonerl stonerl merged commit 0193912 into main Mar 9, 2026
2 checks passed
@stonerl stonerl deleted the feat/url-scheme-raycast branch March 9, 2026 14:25
@tt11364
Copy link
Copy Markdown

tt11364 commented Mar 9, 2026

@stonerl Tested on a different Mac and everything looks fine, just to make sure nothing breaks and everything works as intended. Safe to release for beta users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New capability that did not exist before

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants