Settings
Open Settings -> Community plugins -> Advanced Metadata Cache to configure the plugin. Each option below lists the setting key stored in the plugin’s data.json.
isBacklinksModuleEnabled- when on, the Backlinks module maintains the backlink index and answers
app.metadataCache.getBacklinksForFile()from it. When off, the module is unloaded outright - its index, its listeners and itsRefresh backlink panelscommand all go with it, and Obsidian’s own implementation answers again. Every index this plugin maintains is a module of its own, so switching one off leaves the others running.
- when on, the Backlinks module maintains the backlink index and answers
isBlockMetadataModuleEnabled- when on, the Block metadata module reads every
advanced-metadata-cachecode block, whose YAML gives the heading or block right above it properties of its own, so other plugins can read them and find every block marked, say,status: open. It reads only notes that contain code blocks, and keeps nothing on disk. Off by default, like every module added after the one this plugin was created for. 16 Block metadata demonstrates it.
- when on, the Block metadata module reads every
isCodeBlockLinksModuleEnabled- when on, the Code block links module counts the links and embeds written inside code blocks of the languages listed below, so they reach backlinks, outgoing links, the graph and rename updates like any other link. It does nothing until a language is listed here or registered by another plugin, which is why it is on by default. 11 Code block links demonstrates it.
codeBlockLinkLanguages- the code block languages whose content is a note, one per line: an exact language, or a pattern in which
*stands for anything, such asad-*. Case-sensitive, and empty by default. Read by the Code block links module only.
- the code block languages whose content is a note, one per line: an exact language, or a pattern in which
isExternalLinksModuleEnabled- when on, the External links module keeps, for every page and every site the vault links to, the notes linking to it and where, so other plugins can show a site’s backlinks, suggest URLs already used and flag a host that looks like a typo. Every
httporhttpsURL counts, bare, in a markdown link or in a property, outside code. Obsidian keeps no record of external links, so the module reads missing or changed notes and restores unchanged notes from a device-local checkpoint at startup. Off by default, like every module added after the one this plugin was created for. 13 External links demonstrates it.
- when on, the External links module keeps, for every page and every site the vault links to, the notes linking to it and where, so other plugins can show a site’s backlinks, suggest URLs already used and flag a host that looks like a typo. Every
isHtmlModuleEnabled- when on, the HTML module shares source ranges and sanitizer diagnostics with other plugins. Off by default. It reads missing or changed Markdown notes, reuses local checkpoints at startup, and reads no note for a lookup. 15 HTML demonstrates it.
isHeadingsModuleEnabled- when on, the Headings module records when each heading of a note was created, last modified and last seen on screen, and publishes it through the plugin API for other plugins to sort by. It is kept in this device’s local storage, never in the note, and only for notes opened, created or changed while it is on; it reaches other devices only while Sync between devices is on, below. Off by default, like every module added after the one this plugin was created for. 07 Heading times demonstrates it.
isLinkTextsModuleEnabled- when on, the Link texts module keeps, for every note and attachment, the texts the links pointing at it show instead of its name, so other plugins can find a file by them. It reads the links Obsidian has already parsed, never a note, and keeps nothing on disk, which is why it is on by default. 10 Link texts demonstrates it.
isNamesModuleEnabled- when on, the Names module indexes what every note is called - its name and its
aliases- and answersapp.metadataCache.getLinkSuggestions()from that index, which is what the[[autocomplete asks on every open. Off by default, like every module added after the one this plugin was created for. 05 Name index demonstrates it.
- when on, the Names module indexes what every note is called - its name and its
isPropertiesModuleEnabled- when on, the Properties module indexes which notes carry the frontmatter properties other plugins register, and with which values, so those plugins can find a note by a property value without reading the vault. Only registered properties and properties whose type is a date are indexed, so with neither it costs nothing; dates are also kept in order, for range queries, which is why it is on by default. The values are kept in this device’s local storage; the registered names reach other devices only while Sync between devices is on, below. 08 Property index demonstrates it.
datePropertyNames- the properties whose values are dates whatever type Obsidian assigns them, one per line: an exact name, or a pattern in which
*stands for anything. Case-sensitive, and the default,dateand*Date, coversbirthDateandstartDate. A property whose type is Date or Date & time is a date property without being listed. Read by the Properties module only. 08 Property index demonstrates it.
- the properties whose values are dates whatever type Obsidian assigns them, one per line: an exact name, or a pattern in which
defaultTimeZone- the IANA zone used for zone-free date values in UTC queries, for example
Europe/Kyiv. Empty by default, which follows this device’s zone; pin it for consistent answers across devices. Each query can override it, interpret values as UTC, skip them, or fail when their zone is missing. 08 Property index demonstrates UTC queries.
- the IANA zone used for zone-free date values in UTC queries, for example
isTagsModuleEnabled- when on, the Tags module keeps, for every tag, the notes carrying it, apart by whether the note wrote it in its text or in its
tagsproperty, so other plugins can find the notes tagged#projectwithout reading every note. It reads the tags Obsidian has already parsed, never a note, and keeps nothing on disk. Off by default, like every module added after the one this plugin was created for. 12 Tags demonstrates it.
- when on, the Tags module keeps, for every tag, the notes carrying it, apart by whether the note wrote it in its text or in its
isTitlesModuleEnabled- when on, the Titles module reads the frontmatter properties listed below as names for the note carrying them, alongside its own name and its
aliases. Nothing is indexed up front - the properties are read per note, on demand - so a plugin that asks about one note pays for one note. Off by default, like every module added after the one this plugin was created for. 06 Titles demonstrates it.
- when on, the Titles module reads the frontmatter properties listed below as names for the note carrying them, alongside its own name and its
titlePropertyNames- the properties the Titles module reads, one per line. Defaults to
titlealone. Other plugins can read this same list through the plugin API, so a vault that uses a different property names it here once rather than once per plugin.
- the properties the Titles module reads, one per line. Defaults to
titleNamePatterns- the name patterns the Titles module builds names from, one per line, each a list of properties separated by commas, such as
lastName, firstName. The parts present are joined with a space, and a part holding forms keyed by language builds one name per language, never mixing two. Empty by default. 06 Titles demonstrates it.
- the name patterns the Titles module builds names from, one per line, each a list of properties separated by commas, such as
shouldOfferTitlesInLinkSuggestions- when on, the
[[autocomplete offers a note under its titles as well as under its own name and itsaliases. Off by default, and only visible in the settings while both the Names and the Titles modules are on, since it does nothing without either. With it off, the list this plugin answers with is the one Obsidian would have built, only faster; with it on, the title entries are appended to that list rather than ranked against it, and accepting one writes a link like[[Notes/some-note|The Real Name]]that keeps working even if this plugin is switched off later. 06 Titles demonstrates both sides.
- when on, the
isUnlinkedMentionsModuleEnabled- when on, the Unlinked mentions module indexes which notes mention which note names in plain text, so the Backlinks pane’s Unlinked mentions section reads only the notes that mention the open note instead of every note in the vault, and lists exactly what it listed before. Every note is read once when it starts, in the background, which is why it is off by default. 09 Unlinked mentions demonstrates it.
shouldAutomaticallyRefreshBacklinkPanels- when on, open Backlinks panes refresh automatically as the cache updates, so they always reflect the latest links. When off, refresh them yourself with the
Advanced Metadata Cache: Refresh backlink panelscommand.
- when on, open Backlinks panes refresh automatically as the cache updates, so they always reflect the latest links. When off, refresh them yourself with the
shouldShowProgressBarOnLoad- when on, a progress bar is shown while the cache is built as the vault loads. This is reassuring in large vaults where the initial build takes a moment; turn it off for a quieter startup.
pluginDataFolder- the folder the state this plugin shares between devices goes to, in its own
advanced-metadata-cachesubfolder:@Plugin sync data (DO NOT REMOVE)by default, a folder other plugins by the same author share. Saving it moves nothing: press Move beside it, on one device, while sync is on, and the history is copied, verified and followed by every device. A hidden folder is refused, because sync tools skip it.
- the folder the state this plugin shares between devices goes to, in its own
Sync between devices is not in data.json at all: each device decides for itself, and the choice is kept in its local storage, so a synced data.json never turns it on for a new device. It starts off, and a device with it off creates no folder. Turned on, it writes heading times and registered property names to the plugin data folder for your sync tool to carry, and adds the folder to Excluded files. Turning it off deletes nothing. See docs/storage.md in the repository for the details.
There is also a command, Advanced Metadata Cache: Refresh backlink panels, that rebuilds the visible Backlinks panes on demand.
The Non-Markdown module (isNonMarkdownModuleEnabled, on by default) exposes metadata for additional file types. Markdown file extensions (markdownFileExtensions, empty by default) selects the extensions parsed as Markdown; other plugins can register custom parsers. See 14 Non-Markdown for a working screenplay example.
See the difference
Section titled “See the difference”Automatic refreshing is off by default, so the manual command is the behavior most readers actually have. Put a Backlinks pane on screen first, then edit a link in one of the Topics notes and watch what the pane does:
await require('/demoSetup.ts').showCentralTopicBacklinks(app);require('/demoSetup.ts').refreshBacklinkPanels(app);Manual equivalent: Advanced Metadata Cache: Refresh backlink panels in the Command Palette.
Then turn automatic refreshing on and make the same edit - the pane keeps itself current and the command becomes unnecessary:
await require('/demoSetup.ts').changeSettings(app, { shouldAutomaticallyRefreshBacklinkPanels: true });await require('/demoSetup.ts').changeSettings(app, { shouldAutomaticallyRefreshBacklinkPanels: false });Manual equivalent: toggle Should automatically refresh backlink panels above.
Switching the Backlinks module off unloads it while the plugin stays loaded. Ask for backlinks in 01 Backlink cache after each of these and you will see the built-in implementation answering instead, with Refresh backlink panels gone from the Command Palette:
await require('/demoSetup.ts').changeSettings(app, { isBacklinksModuleEnabled: false });await require('/demoSetup.ts').changeSettings(app, { isBacklinksModuleEnabled: true });Manual equivalent: toggle Backlinks module above.
The progress bar only appears while the cache is built at vault load, so it needs a restart to see either way:
await require('/demoSetup.ts').changeSettings(app, { shouldShowProgressBarOnLoad: false });await require('/demoSetup.ts').changeSettings(app, { shouldShowProgressBarOnLoad: true });The Titles module has its own pair, and 06 Titles shows what changes between them:
await require('/demoSetup.ts').changeSettings(app, { isTitlesModuleEnabled: true });await require('/demoSetup.ts').changeSettings(app, { isTitlesModuleEnabled: false });Manual equivalent: toggle Titles module above.