diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts index 9089729..a0eff65 100644 --- a/src/utils/helpers.ts +++ b/src/utils/helpers.ts @@ -119,7 +119,7 @@ export const getAllTagsFromMetadata = (cache: CachedMetadata): string[] => { export const getFileFromPath = (vault: Vault, path: string) => { let file = vault.getAbstractFileByPath(path) if (file instanceof TFile) return file - const files = vault.getFiles() + const files = vault.getMarkdownFiles() file = files.find(e => e.name === path) if (file instanceof TFile) return file } diff --git a/src/view.ts b/src/view.ts index 0a37c4f..acd37c8 100644 --- a/src/view.ts +++ b/src/view.ts @@ -110,7 +110,7 @@ export default class TodoListView extends ItemView { private async calculateAllItems() { const todosForUpdatedFiles = await parseTodos( - this.app.vault.getFiles(), + this.app.vault.getMarkdownFiles(), this.todoTagArray.length === 0 ? ['*'] : this.visibleTodoTagArray, this.app.metadataCache, this.app.vault,