Page Heading From Links

approved

by Mark Beattie

Populate page headings from the file name.

12 stars6,867 downloadsUpdated 3y ago
View on GitHub

Page Headings Obsidian Plugin

Obsidian plugin to populate page headings from the filename.

When enabled, any time a blank file is opened, either from having just created it from a wiki link or opening a pre-existing blank file, a Markdown heading will be inserted into the page that is constructed from the filename (see below for details).

If you build up your notes in a similar fashion to Zettelkasten or like to insert wiki links into a parent page and then click on them to create the child page, and you like to follow the convention of the page heading matching the filename (like NotePlan), this plugin will take care of that for you.

From filename to page header

The page header is given by the filename and the following transformations:

  • The suffix (usually .md) is removed.
  • Underscores _ are replaced by a blank space ' '.
  • The first word is capitalized.

For example, this_is_my_filename.md creates the title This is my filename.

Todo

  • Expose a hotkey/command to insert headings into existing notes that don't have a heading?

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.