Skip to content

Add file associations for macOS - #62

Merged
Tkaixiang merged 1 commit into
Tkaixiang:trunkfrom
mdsakalu:feature/macos-file-associations
Jan 12, 2026
Merged

Tkaixiang merged 1 commit into
Tkaixiang:trunkfrom
mdsakalu:feature/macos-file-associations

Conversation

@mdsakalu

@mdsakalu mdsakalu commented Jan 9, 2026

Copy link
Copy Markdown

Summary

Register MarkText as a handler for markdown files on macOS, allowing users to set it as the default app for opening markdown files.

Changes

Added fileAssociations to electron-builder.yml for the following extensions:

  • .md
  • .markdown
  • .mmd
  • .mdown
  • .mdtxt
  • .mdtext

Result

  • MarkText appears in Finder's "Open With" context menu for markdown files
  • Users can set MarkText as the default app via "Get Info" → "Open with" → "Change All..."

Testing

  1. Build the app: npm run build:mac
  2. Install the app
  3. Right-click a .md file in Finder
  4. Verify MarkText appears in "Open With" menu
  5. Optionally set as default via Get Info

🤖 Generated with Claude Code

Register MarkText as a handler for markdown files (.md, .markdown,
.mmd, .mdown, .mdtxt, .mdtext) and plain text (.txt) on macOS.

This allows users to set MarkText as the default app for opening
markdown files via Finder's "Open With" menu.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@peterjthomson

Copy link
Copy Markdown

Looks great!

@Tkaixiang

Tkaixiang commented Jan 12, 2026 •

Copy link
Copy Markdown
Owner

Hey, thanks for this PR. I can't personally test this as I do not have a MacOS device, but since other members of the community have tested it, I will be merging this. Thank you for working on this :)

@Tkaixiang
Tkaixiang merged commit 5e1deb4 into Tkaixiang:trunk Jan 12, 2026
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