Fix macOS markdown file associations#113
Merged
alecdotdev merged 1 commit intoalecdotdev:masterfrom Apr 27, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates Tauri bundle configuration so macOS Launch Services can more reliably associate Markdown and plain text files with Markpad by declaring the corresponding UTIs/content types, and by marking the app as an editor for those document types.
Changes:
- Add
contentTypes(UTIs) for Markdown (net.daringfireball.markdown,public.markdown) and plain text (public.plain-text) file associations. - Change
CFBundleTypeRolemapping by setting file associationrolefromViewertoEditorfor.md/.markdownand.txt.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
Adds macOS content type declarations for Markpad's Markdown and plain text file associations.
Why
The app already declares
.md,.markdown, and.txtextensions, but macOS Launch Services works more reliably when document handlers also declare the corresponding UTI/content types. Without those, Markpad may not reliably appear as a recommended/default app in Finder's Open With flow on some macOS installations.This also changes the document role from
ViewertoEditor, which matches Markpad's actual behavior as both a Markdown viewer and editor.Validation
cargo checkfromsrc-tauri/npm run check(existing warnings only, no errors)npm run build(existing warnings only)npm run tauri build -- --bundles appMarkpad.app/Contents/Info.plistincludes:LSItemContentTypes = [net.daringfireball.markdown, public.markdown]LSItemContentTypes = [public.plain-text]CFBundleTypeRole = Editor