Titles
Plenty of notes carry their real name in a frontmatter property rather than in their filename. Meeting note is one of them:
---title: Q3 planning meeting---Obsidian does nothing with that value. It is not the note’s name, it is not an alias, and nothing in the vault can find the note by it.
The Titles module makes it a name. Every property you list is read as one, alongside the note’s own name and its aliases, and the list defaults to title alone.
See it
Section titled “See it”The button switches both Titles and Names on for you - both are off by default - and asks what each name points at:
await require('/demoSetup.ts').showNamesFor(app, 'Q3 planning meeting', { isTitlesModuleEnabled: true });await require('/demoSetup.ts').showNamesFor(app, 'Q3 planning meeting', { isTitlesModuleEnabled: false });The same question, twice, with one toggle between them: with the module on, the title names Meeting note; with it off, it names nothing at all.
With the module on, the Quick switcher (Ctrl/Cmd + O) finds the note by it as well: type Q3 planning and the title is listed as an alias of Meeting note, which it opens. Obsidian’s own switcher matches only aliases.
await require('/demoSetup.ts').showTitlesFor(app, 'Topics/Meeting note.md');That last one is the other half of the module, and the half other plugins use: given a note, what is it called? It is answered per note and on demand, so there is no index to build and nothing to wait for.
The [[ autocomplete, if you want it
Section titled “The [[ autocomplete, if you want it”By default it does not change the [[ autocomplete. Type [[Q3 and nothing is offered, even with the module on. That is deliberate rather than an oversight: this plugin answers the built-in list faster, never differently, and a title is a name for looking a note up - which is what the buttons above do - rather than a new thing to offer while you type.
For a vault whose filenames are ids and whose real names live in frontmatter, though, that is precisely the wrong answer - being unable to link by the title is the whole problem. So it is a setting, Offer titles in the [[ autocomplete, off by default and visible once both modules are on. See both sides of it:
await require('/demoSetup.ts').showAutocompleteOfferFor(app, 'Q3 planning meeting', false);await require('/demoSetup.ts').showAutocompleteOfferFor(app, 'Q3 planning meeting', true);With it on, type [[Q3 in any note and Meeting note is offered under its title. Three things are worth knowing about what you get:
- The title entries are appended, not ranked in. Everything Obsidian itself would have offered comes first, in its own order, and the titles follow. Which of a name, an alias and a title you meant is a question about your vault that this plugin does not have an answer to, so it does not invent one - the same reason the reverse lookup above is unranked. That is also why the two counts in the notices differ by exactly the titles: the built-in list is still the whole front of the indexed one.
- Accepting one writes a normal link.
[[Topics/Meeting note|Q3 planning meeting]], not[[Q3 planning meeting]]. Obsidian resolves it on its own, renames update it, and it keeps working if you ever switch this plugin off. A bare title would resolve only while the plugin is enabled, which is a trap rather than a feature. - Nothing is offered twice. A title that already matches the note’s own name or one of its
aliasescontributes no extra entry.
await require('/demoSetup.ts').showAutocompleteOfferFor(app, 'Q3 planning meeting', false);Naming more than one property
Section titled “Naming more than one property”The list is plural, so a vault that uses several name-bearing properties lists them all:
await require('/demoSetup.ts').changeSettings(app, { titlePropertyNames: ['title', 'heading'] });await require('/demoSetup.ts').changeSettings(app, { titlePropertyNames: ['title'] });Manual equivalent: edit Title properties in Settings -> Community plugins -> Advanced Metadata Cache, one property per line.
Names built from name parts
Section titled “Names built from name parts”A person has more names than anybody wants to type out: surname first for a directory, first name first for a letter, and each again in every language the person is known in. Kovalenko Olena stores none of them. It stores only its lastName and firstName, and each part holds its forms keyed by the form, valued by the languages that use it:
---lastName: {Коваленко: [uk, ru], Kovalenko: [en]}firstName: {Олена: [uk], Елена: [ru], Olena: [en], Helen: [en]}---A name pattern lists the properties to join, in order. The pattern is built once per language, the parts present are joined with a space, and a part missing in a language is skipped rather than taken from another language, so no half-Ukrainian, half-English name is ever built. Two forms in one language (Olena, Helen) give two names. A plain value, such as lastName: Kovalenko, belongs to every language.
await require('/demoSetup.ts').changeSettings(app, { isTitlesModuleEnabled: true, titleNamePatterns: [['lastName', 'firstName'], ['firstName', 'lastName']] });await require('/demoSetup.ts').showTitlesFor(app, 'People/Kovalenko Olena.md');await require('/demoSetup.ts').showNamesFor(app, 'Helen Kovalenko', { isTitlesModuleEnabled: true });The built names are titles like any other: they name the note, they reach the [[ autocomplete when Offer titles in the [[ autocomplete is on, and other plugins read them through the same API.
await require('/demoSetup.ts').changeSettings(app, { titleNamePatterns: [] });Manual equivalent: edit Name patterns in Settings -> Community plugins -> Advanced Metadata Cache, one pattern per line, its properties separated by commas: lastName, firstName.
Obsidian’s Properties view cannot edit a nested value like these; edit them in Source mode, or with a plugin that edits nested properties.
If you also use Front Matter Title
Section titled “If you also use Front Matter Title”Front Matter Title does the opposite thing: it takes a note and shows you its title, in the file explorer, the tabs and the graph. This module takes a title and finds you the note.
The two are independent on purpose. If you run both, name the property in each. One plugin’s setting silently deciding what another one answers is harder to understand than typing title twice - and you would have no way to tell, from this plugin’s settings, why its answers had changed.
When a note’s title is not found
Section titled “When a note’s title is not found”If the frontmatter of a note does not parse, Obsidian ignores every property in it. The note then has no title and no aliases, and nothing finds it under them, not even the core Quick switcher. The Properties view and the text still show the values, so this is easy to miss. A common cause is a key written twice, such as two mtime: lines.
While this module is on, it reports each such note in the developer console (Ctrl+Shift+I). The report names the note and gives the YAML error. Fix the error, and the note’s titles are found again.
Switching it off
Section titled “Switching it off”await require('/demoSetup.ts').changeSettings(app, { isTitlesModuleEnabled: false, shouldOfferTitlesInLinkSuggestions: false });See 04 Settings for the rest of the options.