Hi,
I can list all todos
##### all tasks
```tasks
1. a bonus would be to see list of todo with - [?]
what is wrong with my code? i took this from eleonor konig. but i do not know js.there are errors. please fix it.
2. I also want to have pictures instead of - [?], i do not know where to put Css to fix this.
i am using minimal and style plugins suggested by minimal. but i cannot see a way to style the todos.
thank you.
//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]
})
//resolve the promises and build the table
Promise.all(arr).then(values => [
console.log(values)
//filter out files without "ad-question" and the note with the
dataview script
const exists - values.filter(value -› value[1][0] && value[0] :-
" [[dataviewjs-testing]]")
dv.table(["file", "lines"], exists)
})
Also
make this pretty
- [ ] to-do
- [/] incomplete
- [x] done
- [-] canceled
- [>] forwarded
- [<] scheduling
- [?] question
- [!] important
- [*] star
- ["] quote
- [l] location
- [b] bookmark
- [i] information
- [S] savings
- [I] idea
- [p] pros
- [c] cons
- [f] fire
- [k] key
- [w] win
- [u] up
- [d] down
Thank you.