Move ⁠notes.md from Subfolder to Vault Root (Keep Other Resources)

Hi everyone,

I’ve recently imported my notes from Evernote into Obsidian. The import process placed all my notes inside a folder structure like this:

notename
_ressources
notename.md

What I want:

I’d prefer to have all the ⁠notes.md files moved to the root (first) level of my vault—so I don’t have to do each time a double click on note name to access the note, i just want one click to read the note without having to toggle it as i folder without affecting other resource files (images, PDFs, etc.) in their existing folders. The only thing I want at the root is each ⁠notes.md file.

There are quite a few notes, so I’m looking for an efficient solution that (ideally) will also preserve my internal links.

Can anyone recommend:

  • The best workflow or plugin for this situation?

  • Any tips to avoid breaking internal links?

  • A command line script or batch method (that only moves ⁠notes.md, not the other files)?

Thanks a lot for your help!

First, backup your notes (you should of course be backing up anyway; if not you can just make a copy for now and use Back up your Obsidian files - Obsidian Help to setup something proper later).

If your links don’t have folder paths in them, and you have Obsidian set to automatically update links, you can leave Obsidian open, pause Sync if you use it, and use your operating system’s file explorer to move the notes. Obsidian should notice the changes, and links will continue working. If any links have folder paths in them, they won’t be updated because you didn’t move the file in Obsidian.

If you’re using a different link setup, I would search for helpful plugins. Otherwise I think you’ll be choosing between a tedious moving experience in Obsidian or an easy moving experience that breaks all the links.

(This is one of the reasons I don’t reuse note names.)

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.