MCPcopy Create free account
hub / github.com/chhoumann/MetaEdit / enqueueFrontmatterWrite

Method enqueueFrontmatterWrite

src/metaController.ts:850–852  ·  view source on GitHub ↗

* Run a `processFrontMatter` mutation serialized through this file's write * queue, so it interleaves safely with every other MetaEdit write to the same * file (the inline/tag `vault.read`+`vault.modify` paths in particular, which * Obsidian does NOT serialize against a bare `processF

(file: TFile, update: (frontmatter: Record<string, unknown>) => void)

Source from the content-addressed store, hash-verified

848 * (`isReservedFrontmatterKey`); any new caller must do the same.
849 */
850 public async enqueueFrontmatterWrite(file: TFile, update: (frontmatter: Record<string, unknown>) => void): Promise<void> {
851 await this.enqueueFileWrite(file, () => this.processFrontMatter(file, update));
852 }
853
854 private async processFrontMatter(file: TFile, update: (frontmatter: Record<string, unknown>) => void): Promise<void> {
855 await this.app.fileManager.processFrontMatter(file, update);

Callers 1

applyToFileMethod · 0.80

Calls 2

enqueueFileWriteMethod · 0.95
processFrontMatterMethod · 0.95

Tested by

no test coverage detected