Skip to content

Open Markdown files in Omawrite - #19087

Merged
dhh merged 1 commit into
quattrofrom
worktree-omawrite-markdown
Nov 16, 2026
Merged

dhh merged 1 commit into
quattrofrom
worktree-omawrite-markdown

Conversation

@dhh

@dhh dhh commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Markdown had no default of its own, so double-clicking a .md file opened whichever app the desktop database listed first: Obsidian on an install that has it (text/markdown=obsidian.desktop;omawrite.desktop;). The packaged mimeapps.list now names Omawrite for text/markdown and its alias text/x-markdown. Omawrite is in the base packages and its desktop entry already declares both.

No migration is needed: the list ships in the package, so existing installs pick it up with the update. GLib settles a file's exact type before its parent, so this beats the text/plain editor lines earlier changes wrote into users' ~/.config/mimeapps.list. A Markdown choice a user made there still wins. Choosing an editor under Setup > Default > Editor leaves Markdown alone, since the editor handler doesn't declare it.

The manual's GUI page now says Markdown opens in Omawrite. Its claim that plain text opens in Neovim, out of date since the editor became a choice, now points at that setting.

Checked

  • With this list ahead of the system one in XDG_DATA_DIRS, and a real ~/.config/mimeapps.list that sets text/plain, gio mime gives omawrite.desktop for text/markdown and text/x-markdown, and still omarchy-launch-editor.desktop for text/plain.
  • test/shell.d/default-apps-test.sh passes.

No visible change: this changes which app opens a file, not anything drawn.

🤖 Generated with Claude Code

Markdown had no default of its own, so .md files opened in whichever app
the desktop database listed first, Obsidian on an install that has it.
The packaged list now names Omawrite for text/markdown and its alias.
An exact type wins over the text/plain editor lines in a user's own list,
and a Markdown choice the user made there still wins over this one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Sets Omawrite as the default for text/markdown and text/x-markdown.

  • Markdown files open in Omawrite by default.

No actionable issues found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "Open Markdown files in Omawrite" · Reviewed by Greptile

@dhh
dhh merged commit 37285b5 into quattro Nov 16, 2026
3 checks passed
@dhh
dhh deleted the worktree-omawrite-markdown branch November 16, 2026 07:34
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