Skip to content

Fix macOS markdown file associations#113

Merged
alecdotdev merged 1 commit intoalecdotdev:masterfrom
wargoblin:codex/macos-markdown-file-associations
Apr 27, 2026
Merged

Fix macOS markdown file associations#113
alecdotdev merged 1 commit intoalecdotdev:masterfrom
wargoblin:codex/macos-markdown-file-associations

Conversation

@wargoblin
Copy link
Copy Markdown
Contributor

Summary

Adds macOS content type declarations for Markpad's Markdown and plain text file associations.

Why

The app already declares .md, .markdown, and .txt extensions, 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 Viewer to Editor, which matches Markpad's actual behavior as both a Markdown viewer and editor.

Validation

  • cargo check from src-tauri/
  • npm run check (existing warnings only, no errors)
  • npm run build (existing warnings only)
  • npm run tauri build -- --bundles app
  • Verified the generated Markpad.app/Contents/Info.plist includes:
    • LSItemContentTypes = [net.daringfireball.markdown, public.markdown]
    • LSItemContentTypes = [public.plain-text]
    • CFBundleTypeRole = Editor

@wargoblin wargoblin marked this pull request as ready for review April 26, 2026 16:33
Copilot AI review requested due to automatic review settings April 26, 2026 16:33
Copy link
Copy Markdown

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

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 CFBundleTypeRole mapping by setting file association role from Viewer to Editor for .md/.markdown and .txt.

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

@alecdotdev alecdotdev merged commit 8402877 into alecdotdev:master Apr 27, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants