Front Matter Title (Obsidian Plugin)
This plugin allows you to define the title of a note via front matter.
Without the plugin
In out-of-the-box Obsidian, the title of a note is the base name of the file (e.g. if the path is parent-folder/sub-folder/child-note.md then the title is child-note).
This title then shows up in a bunch of places, including:
- the Quick Switcher (i.e. when you hit
⌘+O), - the Graph View
- the Explorer
- Canvases
- Tab titles
- Bookmarks
Obsidian also lets you define aliases for a note via the aliases property.
These aliases will appear in a few places, most prominently the Quick Switcher and Unlinked Mentions.
With the plugin
You can define main template and a fallback templates. These can get pretty complicated, allowing you to use multiple front matter properties, the basename, and the first heading.
I use title and aliases[0] for my main and fallback templates respectively, and recommend you do the same, unless you have specific needs. It's simple. It has the best synergy with other plugins, and it avoids some weird behavior with other options.
Aside: When I first started using the plugin, I used #heading, but that has some quirks. First, it means "first heading of any level", not "first H1", so if you don't already set H1s, and enable it in an existing vault, you probably won't get the title you intended. Also, the Excalidraw Plugin currently sets a hardcoded H1 of "Excalidraw Data".
Whatever template you use, the resulting title will appear in the places mentioned (although, these can each be toggled individually).
Synergy with other plugins
- [[2024-07-26-waypoint-plugin]]
- Must use the
titleproperty - Only supported on standard notes. Folder Notes still use the out-of-the-box title.
- Must use the
- [[DataView (Obsidian Plugin)]]
- use
default(this.title, this.file.name)in your queries to snag the title property for notes that have it, and fallback to the file's basename
- use