Repository navigation
Conversation
- Dropping markdown files on the editor or preview opens them as native window tabs instead of inserting the file path as text. - A single file dropped on an untitled, unedited document replaces it; multiple files leave it alone and just add tabs. - Finder "Open with" / Dock drops of multiple files land as tabs on the frontmost document window via a kAEOpenDocuments Apple Event handler (SwiftUI's DocumentGroup bypasses the delegate's application(_:open:)).
Only replace the empty untitled document when a dropped file actually opened, and let a batch fall through to the next URL when the first one fails to open.
Deploying clearly with
|
| Latest commit: |
55f2c41
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4e11cb94.clearly-cjz.pages.dev |
| Branch Preview URL: | https://issue-384.clearly-cjz.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dropping one or more markdown files onto a Clearly window (editor or preview) now opens them as native window tabs instead of inserting the file path as text. A single file dropped on an untitled, unedited document replaces it, while multiple files leave the empty tab alone and just add tabs, matching browser/editor convention. Finder "Open with" and Dock drops of multiple files also land as tabs on the frontmost document window, via a kAEOpenDocuments Apple Event handler since SwiftUI's DocumentGroup bypasses the delegate's application(_:open:). Non-markdown drops keep their existing behavior.
Fixes #384