This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```dataviewjs | |
//get all md files in vault | |
const files = app.vault.getMarkdownFiles() | |
//create an array with the filename and lines that include the desired tag | |
let arr = files.map(async(file) => { | |
const content = await app.vault.cachedRead(file) | |
//turn all the content into an array | |
let lines = await content.split("\n").filter(line => line.includes("- [?]")) | |
return ["[["+file.name.split(".")[0]+"]]", lines] |