Skip to content

feat(macos): app document icon for markdown files - #33

Merged
anbturki merged 1 commit into
mainfrom
feat/md-document-icon
Jul 23, 2026
Merged

feat(macos): app document icon for markdown files#33
anbturki merged 1 commit into
mainfrom
feat/md-document-icon

Conversation

@anbturki

Copy link
Copy Markdown
Owner

Adds src-tauri/Info.plist so macOS draws a DocsReader document icon for .md/.markdown/.mdx (via CFBundleTypeIconSystemGenerated on macOS 11+), for users who set DocsReader as their default handler. The entries restate what fileAssociations generates (the CLI replaces user Info.plist keys wholesale, source-verified) plus the icon key. Build-time metadata only: no runtime code, no performance or UX impact; worst case is no icon, never breakage. Ships in 0.11.1.

Add src-tauri/Info.plist so the generated CFBundleDocumentTypes gain
CFBundleTypeIconSystemGenerated, which tells macOS 11+ to draw a document icon
from the app icon. A .md/.markdown/.mdx then shows the DocsReader mark in Finder
for anyone who sets DocsReader as their default app for the type.

The entries restate what bundle.fileAssociations already generates, since the
CLI merges a user Info.plist by replacing keys wholesale; keep the two in sync.
Build-time metadata only - no runtime code, no effect on performance or UX.
@anbturki
anbturki merged commit e61f4ce into main Jul 23, 2026
3 checks passed
@anbturki
anbturki deleted the feat/md-document-icon branch July 23, 2026 08:13
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.

1 participant