Automatically sets or updates the YAML title
field of your Markdown notes based on the filename. Includes options for manual command, auto-title on save, and folder exclusions.
- Set YAML title to filename: Adds or updates the
title
field in your note's YAML frontmatter to match the filename (without extension). - Auto-set on save: Optionally updates the title automatically every time you save a note.
- Exclude folders: Specify folders (one per line) where notes should NOT be auto-titled.
- Manual command: Run the "Set YAML title to filename" command from the command palette for one-off updates.
Open the plugin settings in Obsidian to configure:
- Auto-set title on save: Toggle to enable or disable automatic title updates when saving.
- Excluded folders: Enter one folder path per line (e.g.,
Templates/
orArchive/
). Notes in these folders will be ignored by the auto-title feature.
- Enable the plugin in Obsidian settings.
- (Optional) Open plugin settings to enable "Auto-set title on save" and/or specify excluded folders.
- Manual command: Open the command palette and run "Set YAML title to filename" on the active note.
- Automatic: If enabled, just save your note—if it doesn't already have a title (and isn't in an excluded folder), the plugin will set it for you.
Suppose you have a note at Notes/Project Plan.md
with this content:
---
date: 2025-06-21
---
# Project Plan
Details...
After saving (with auto-title enabled), it will become:
---
title: Project Plan
date: 2025-06-21
---
# Project Plan
Details...
- Copy
main.js
,manifest.json
, and (optionally)styles.css
to your vault's.obsidian/plugins/auto-title/
folder. - Reload Obsidian and enable the plugin.
- Clone the repo into your
.obsidian/plugins/auto-title/
folder. - Run
npm install
andnpm run dev
to build in watch mode. - Edit
main.ts
and reload Obsidian to test changes.
If you encounter bugs or have feature requests, please open an issue on the repository.
Enjoy seamless YAML title management in your Obsidian vault!