Allow opening of a .md file with Obsidian to open it within its vault

Desired Behavior

When I take a markdown file that appears in a local Obsidian vault and open it in Obsidian via the Finder’s drag-and-drop or “open with…”, I would like it to be opened in Obsidian, within the file’s containing vault.

Current Behavior

When I drag-and-drop any markdown file into Obsidian, my Mac opens the Obsidian app but Obsidian does nothing.

Motivation

With the newly expanded Spotlight feature of MacOS 26, I’m finding my searches often return .md files inside my local Obsidian vault. I would like to be able to click on such a file to open it. Instead I need to abort the Spotlight search and repeat the search within Obsidian.
With the proposed feature, I could set Obsidian to be the default app for .md files in order to open the file in Obsidian without leaving Spotlight.

Consideration: What would the behavior be for opening a .md file that is not contained in a vault?
I see two options:

  1. Maintain current behavior. The file would be ignored.
  2. Preferred behavior. Obsidian would have a “detached” mode in which is functions simply as a markdown editor/viewer, and open the file in this mode.

Closely related: