Finding all the TODOs in the Vault, but they are strings, not regular tasks

What I’m trying to do

What I’m trying to is to generate a list of lines spread across my vault. What they have is in common, that what I can use to look for them, is the string TODO: .

I do this because I add TODO like a programmer adds to a comment in the code. It’s not a real task item started with - [ ].

If I execute grep -r 'TODO: ' inside my vault folder, it quite does the trick.

The idea is to do this inside a note and, if possible, with a better visualization.

Things I have tried

I tried using Dataview but found out that just indexes the metadata. I tried DataViewJS, as suggested by ChatGPT (sorry about that), but it doesn’t have the method split() to separate the lines in the file so just can match with specific ones, the ones with TODO: .

This comment is useful: In DataviewJS() how can I filter by page content in dv.pages()? - #2 by Oneechan69.
It shows how to check a page for a content and create a table with it.
I still need help, though, because the idea is to check the content of a line in the file and return jusst that line.

You could embed a search for "TODO:".

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.