When I write a document in Latex I usually use my custom \todo{<my note>}-command to not forget things that I will have to come back to. Something like
\newcommand{\todo}[1]{{\color{red}\textbf{TODO:}~{#1}}}
jumps into the eye well enough.
But I would like it even better, if I had a list of all todos that are sprinkled around a document. I.e. a command like \todolist that generates a list of all my todos (optionally with page and line info). Similar to a list of figures.
Since I am not an expert in Latex, I have troubles estimating the amount of work that I would have to be put into that. I would think I need a counter ... but what else? What other Latex building blocks are needed? :-)

\todoname? – Make42 May 03 '22 at 16:32