Skip to content

obsidian/file-change

Contains utility types and functions for handling file changes in Obsidian.

InterfaceDescription
ApplyContentChangesParamsParameters for applyContentChanges.
ApplyFileChangesParamsParameters for applyFileChanges.
FileChangeA file change in the vault.
FunctionDescription
applyContentChangesApplies a series of content changes to the specified content.
applyFileChangesApplies a series of file changes to the specified file or path within the application.
isCanvasChangeChecks if a file change is a canvas change.
isCanvasFileNodeChangeChecks if a file change is a canvas file node change.
isCanvasTextNodeChangeChecks if a file change is a canvas text node change.
isContentChangeChecks if a file change is a content change.
isFrontmatterChangeChecks if a file change is a frontmatter change.
isFrontmatterChangeWithOffsetsChecks if a file change is a frontmatter change with offsets.
toFrontmatterChangeWithOffsetsConverts a frontmatter change to a frontmatter change with offsets.
TypeDescription
ApplyFileChangesOptionsOptions for applyFileChanges.