Skip to content

H1 titles

Andrei Stepanenko edited this page Nov 30, 2023 · 1 revision

Inspired by what the Front Matter Title plugin can do, this plugin treats top-level headings as note titles. However, this plugin does not actually replace the titles in the Obsidian interface. Instead, the titles are used in two places:

The reasons for this choice are simple:

  • I don't want paths to notes to contain spaces or non-ASCII characters
  • I want to eliminate the aspect of sorting the notes into directories, and instead I want to sort and find notes by their tags
  • Not all of my notes have titles (e.g. imported journaling notes)

Additionally, notes that have a date field in their frontmatter get their date info automatically appended to their title. The field can be set to:

  • "auto", then the date info is inferred from the filename, which is the note creation timestamp
  • "todo", then the date info becomes "to-do", and the note is assumed to have tasks for filtering purposes (even if there are no actual tasks inside)
  • "YYYYMMDD-HHmmss" or "YYYYMMDD" timestamp to set an arbitrary date
🖼️ Link Auto Text with a date

h1-titles-dated

Sensitive tags

Some tags can be configured as sensitive. The intention is that the titles of the notes that contain said tags would be blurred when they are rendered (until you hover). This can be useful if you like to screencast.

🖼️ Sensitive tags

#learn/math set as sensitive here:

sensitive-tags

Link Auto Text

The aforementioned Front Matter Title plugin has a feature for automatically adding aliases for notes. This plugin has a different approach. Instead, the links that don't have custom text are resolved during note rendering, using their H1 title.

Links to headings and blocks are also supported.

I like this feature because I don't like when there is unnecessary custom text for links everywhere. I also like it because it supports markdown in note titles!

Clone this wiki locally