Add skeleton for file event handling
This commit is contained in:
parent
1420cf104e
commit
8a7cc65e88
6 changed files with 259 additions and 4 deletions
8
plugin/src/events/file-event-handler.ts
Normal file
8
plugin/src/events/file-event-handler.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { TAbstractFile } from "obsidian";
|
||||
|
||||
export interface FileEventHandler {
|
||||
onCreate: (path: TAbstractFile) => void;
|
||||
onDelete: (path: TAbstractFile) => void;
|
||||
onRename: (path: TAbstractFile, oldPath: string) => void;
|
||||
onModify: (path: TAbstractFile) => void;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue