Repository navigation
Open Markdown files in Omawrite - #19087
Merged
Merged
Conversation
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>
Contributor
[Low impact] This PR appears safe to merge. SummarySets Omawrite as the default for
No actionable issues found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "Open Markdown files in Omawrite" · Reviewed by Greptile |
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.
Markdown had no default of its own, so double-clicking a
.mdfile opened whichever app the desktop database listed first: Obsidian on an install that has it (text/markdown=obsidian.desktop;omawrite.desktop;). The packagedmimeapps.listnow names Omawrite fortext/markdownand its aliastext/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/plaineditor 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
XDG_DATA_DIRS, and a real~/.config/mimeapps.listthat setstext/plain,gio mimegivesomawrite.desktopfortext/markdownandtext/x-markdown, and stillomarchy-launch-editor.desktopfortext/plain.test/shell.d/default-apps-test.shpasses.No visible change: this changes which app opens a file, not anything drawn.
🤖 Generated with Claude Code