NoteComposerPluginInstance.mergeFile method
NoteComposerPluginInstance › mergeFile
Unofficial
Merge a source note into a target note, apply the merge template, update links and trash the source.Signature:
mergeFile(target: TFile, source: TFile, mode?: 'append' | 'prepend'): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| target | TFile | The note receiving the merged content. |
| source | TFile | The note to merge and trash. |
| mode? | 'append' | 'prepend' | Where to insert the content. Defaults to 'append'. |
Returns: Promise<void> — A promise that resolves when the merge and link updates complete.