diff --git a/exclusions.ts b/exclusions.ts index 55306bf..f9bfd69 100644 --- a/exclusions.ts +++ b/exclusions.ts @@ -10,10 +10,20 @@ export function isExcalidraw(app: App, f: TFile) { ); } +export function isKanban(app: App, f: TFile) { + const fileCache = app.metadataCache.getFileCache(f); + return ( + !!fileCache?.frontmatter && !!fileCache.frontmatter['kanban-plugin'] + ); +} + export function isExcluded(app: App, f: TFile) { if (isExcalidraw(app, f)) { return true; } - + if (isKanban(app, f)) { + return true; + } + return false; }