obsidian/file-change
Contains utility types and functions for handling file changes in Obsidian.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| ApplyContentChangesParams | Parameters for applyContentChanges. |
| ApplyFileChangesParams | Parameters for applyFileChanges. |
| FileChange | A file change in the vault. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| applyContentChanges | Applies a series of content changes to the specified content. |
| applyFileChanges | Applies a series of file changes to the specified file or path within the application. |
| isCanvasChange | Checks if a file change is a canvas change. |
| isCanvasFileNodeChange | Checks if a file change is a canvas file node change. |
| isCanvasTextNodeChange | Checks if a file change is a canvas text node change. |
| isContentChange | Checks if a file change is a content change. |
| isFrontmatterChange | Checks if a file change is a frontmatter change. |
| isFrontmatterChangeWithOffsets | Checks if a file change is a frontmatter change with offsets. |
| toFrontmatterChangeWithOffsets | Converts a frontmatter change to a frontmatter change with offsets. |
| Type | Description |
|---|---|
| ApplyFileChangesOptions | Options for applyFileChanges. |