GramEditor/gram
39
995
Fork
You've already forked gram
86

Handle macOS file open events #353

Merged
krig merged 1 commit from pixelkarma/gram:fix-macos-open-files into main 2026年06月25日 23:12:31 +02:00
Contributor
Copy link

Fixes opening single files from Finder drag/drop onto the app icon or via Open With on macOS.

macOS may deliver these opens through application:openFiles: / application:openFile:, while GPUI was only handling application:openURLs:.

This registers those delegate callbacks, converts incoming file paths to file:// URLs, and forwards them through the existing open URL handling path.

Tested:

  • cargo check -p gpui
Fixes opening single files from Finder drag/drop onto the app icon or via Open With on macOS. macOS may deliver these opens through application:openFiles: / application:openFile:, while GPUI was only handling application:openURLs:. This registers those delegate callbacks, converts incoming file paths to file:// URLs, and forwards them through the existing open URL handling path. Tested: - cargo check -p gpui
Owner
Copy link

Oh nice, thank you!

Oh nice, thank you!
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram!353
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "pixelkarma/gram:fix-macos-open-files"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?