I'd like to handle some todos differently than others by defining a new command for them that makes them hidden in the list of todos. Just setting the caption to empty does not suffice (the entry remains just without any text beside the ellipsis and page number).
NWME:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{todonotes}
\presetkeys{todonotes}{inline}{}
\newcommand\todohidden[2][]{%
\todo[inline, caption={}, #1]{%
#2%
}%
}
\begin{document}
\listoftodos
\vspace{0.5\textheight}
\todo{Normal todo}
\todohidden{Hidden todo}
\end{document}
\todo[nolist]{}
will do.caption
keyval replaced withnolist
I am happy to accept it as answer :)