Have Obsidian be the handler of .md files (file association)

Just like mentioned above, I am still not able to open, edit, or create any note in Obsidian. The only place this can be done is directly within the vault in Obsidian.

I suspect the problem being the file path to iCloud Drive/Taio/Editor, where all the files exist. It is mandatory that they are there to have a workflow on iOS with Taio and Mac OS with Obsidian.

This is an ongoing problem. Egreg scripts also cannot find the path as well.

This may also he my own ignorance and if so, it would be wonderful if someone could point me in the right direction.

Thx.

No, Obsidian does not handle files the way other apps do. You cannot tell it to open arbitrary markdown files. You must open files from within your vaults. This thread represents the feature request for what you’re looking for, and it is not implemented yet.

The Alfred workflow I linked is a workaround another user created. It lets you search for and open files in your vaults from Alfred by taking advantage of Obsidian’s URL scheme. Once it’s configured, you can e.g., initiate a files search by typing oss (you can customize this command), then hitting enter, then typing your search query. The workflow will return matching notes/files in your vaults and upon selection will open those in Obsidian.

Thank you for clearing up the open files from within finder Feature Request @ryanjamurphy

I do greatly appreciate all your involvement and trying to help. The roadblock I came across with the Alfred Workflow is the current root path of Mobile iCloud folders, at least in my learning mind thinks that is the problem. I have not found a way to set the path in Alfred to correspond and directly link to the proper folder.

This is all a learning experience for me and I perhaps don’t know the proper procedure.

The Alfred workflow can figure that out for you.

Use the prompt oaddvault and search for the folder name of your vault. It will pick up the path contained in the iCloud directory and add the vault to the workflow’s config.

Thx @ryanjamurphy I have did that dozens of times and without good results.

I can get the Alfred Workflow to recognize the root folder and add a daily note. The problem, I have folders and subfolders in the root directory and it doesn’t seem to recognize them. Example:

~icloud Drive/Taio/Editor is found and will add daily notes there.

However, from there, there are many folders and subfolders, i.e.:

~iCloud Drive/Taio/Editor/Inbox

I am sure I am still doing something wrong. Thus all still a learning process for me.

Hm. Not sure what’s going on, but the developer of the workflow is pretty responsive. Maybe create an Issue on the GitHub page I linked above?

Ok. Thx for all your trouble.

Related to this: Open and edit standalone Markdown files

+1 this feature. It’s very important to me.

I want to be able to use the Mac Finder and search tools to locate documents within the Obsidian vault, and open them from within Obsidian. I don’t really care about using Obsidian to open Markdown files outside the Obsidian vault.

I think of it is a way to enter the Obsidian vault through any document, not just the daily note or whatever document happened to be left open when I last used Obsidian. Very useful!

And thanks to @ryanjamurphy for the pointer to the Obsidian workflow. That gets me off to a good start on the functionality I seek — but only a start!

2 Likes

+1 for having Obsidian being the default markdown editor (on mac). Right now, when I do set it as the default editor, Obsidian opens, but the file itself is not opened. Thanks.

3 Likes

Hi everyone! I’m extremely new in here and with Obsidian, but I think this is the right place for my doubt, please bear with me.

Is this the expected behavior?:
I’m on Windows10, I want to open an md file which is already in my vault, I select it on the file explorer or by searching with “voidtools’ Everything” and click “open with / obsidian”. Obsidian launches, but it shows me a screen where I can open or create a vault.

I know it wasn’t going to open the file, but the vault screen puzzled me.

Anyway, count me in the feature request for Windows!.

Yes it’s expected.
Obsidian works on top of a folder of .md files. It knows nothing about files unless Obsidian is open, and then only about the files in the open vaults. It’s frustrating if you want to open a file in Obsidian from operating system, but that’s the way it works.
If you only want to edit a file and don’t need Obsidian specific features, then you can open it in another editor without impacting Obsidian or its access to the file.

1 Like

Understood, thanks a lot for your reply.
But I really hope this gets changed.

For a PC, all you have to do is right click any .md file, select Properties, and then click the Change association button, and select whatever app you want. There is also a general files association area in newer versions of Windows.

Surprises me what Mac folks have to go through to control simple OS aspects.

The steps to change a file extension association on macOS are pretty much the same as on Windows. The issue is that markdown files cannot be arbitrarily opened by Obsidian, even if the files are already notes in a vault.

Default md viewer with the option to import into a vault … this is needed.

1 Like

Yeah this is a really important issue for me. I’d like to be able to view all my files like normal and not have to use a separate md editor to open a single file i want to look at if im not in obsidian. Obsidian as a file explorer is simply not very good and I’ve looked for every alternative. Because of this, a possible solution for me is just being able to use my file explorer as normal. At this point, I’m just using a different md editor so I can open a single file. It would be nice to have consistency in functionality for md as well as appearance.

The problem is this issue. I’d like to be able to use only one md editor and have md files open with obsidian as default. Currently, it either asks which vault i want to open, or just opens obsidian and goes to the last file I was on. I’m on windows.

I’m not a programmer so I don’t know the reasons why this isn’t possible like in other md apps, but perhaps a possible solution is to have a separate program (it could be in the same obsidian.exe if possible…) Like Obsidian viewer or obsidian editor? And all it would do is open that md file and let you edit it with the same settings as your vault if it’s in that vault? Or the preferences for the obsidian editor could be separate like a separate vault. This “Obsidian viewer/editor” could have different functionality that maybe it’s difficult to have in the base program ( I dont know im not a programmer) But stuff like printing, print preview, in a much easier way.

Of course, having obsidian be a better file explorer with keyboard functionality and better view would work as well. Then I wouldn’t need to use the file explorer. But it’s annoying how obsidian doesn’t seem to have any priority to make it better for exploring files and I’m not allowed to open md files with obsidian in the file explorer. This issue has been frustrating me for days and I’ve been trying to find a work around because I don’t want to use multiple programs.

Hopefully this can be seen as a somewhat important issue. Either improving the file exploration in the program itself or allow us to use obsidian as an md editor. The whole purpose of obisidian is to let you own your files, so I think it would be really great if we could have that freedom!

I doubt this will happen. At the very least it would require a major rewrite, and many functions would not be available because they are vault dependent. Even the CSS is vault based. And user preferences. Assuming it is possible at all.
A standalone editor would be possible, but offer no real advantages over the other programs available now, and would consume some developer time that most users would probably prefer goes into the main program. The printing and preview would be no easier.

I’m sure the file explorer will be developed further at some point. But major changes seem unlikely to be anytime soon - it’s not on the long-term road map and features that are already are likely to be very time-consuming.

Joining the feature request as this is a really important element in allowing more workflows which is what obsidian is all about. Someone mentioned that you’ll need a rewrite for this? That sound really incorrect, the solution shouldn’t be complicated or difficult. If the item is in an exsisting vault open it inside of it. If not in a ghost vault.

Ghost vault options

  • Just a default vault centered on the current folder where any settings or customization is either
    • Grayed out
    • Going to create a new .obsidian folder ie create a new vault in current folder
2 Likes