https://szen.io/ToDo/
This is the Mod of the Sticky-ToDo-Plugin by JanJo.
He is using these macros to list the todos
sorted by dates.
\define ToDo-date() [<currentTiddler>search-replace::regexp[.*<<ToDo ".+?" ".*?" "(.*?)">>.*],[$1]!match[]else[zzz]]
\define ToDo-sidebar-date()
<$list filter="[regexp:text<ToDo-string>!is[system]!is[current]first[1]]" emptyMessage={{$:/plugins/JJ/ToDo/settings##done-message}} variable="x">
<<ToDo-search>>
<$wikify name="ToDo-filter-result" text=<<ToDo-filter>>>
<$list filter="[regexp:text<ToDo-string>!is[system]!is[current]subfilter<ToDo-filter-result>get[text]join[spl1t]]" variable="longstring">
<$list filter="[<longstring>splitregexp[\n|spl1t]regexp<ToDo-string>sortsub<ToDo-date>]" variable="line">
<div style="margin-left:2em;text-indent:-1em;" title=<<line>> > {{{ [<line>search-replace::regexp[.*<<ToDo ".+?" ".*?" "(.*)">>.*],[$1]] }}}
<$list filter="[search<line>]">
<$list filter="[<line>search-replace::regexp{$:/plugins/JJ/ToDo/settings##sidebar-search},[$1]]" variable="line-clean"><<line-clean>></$list>
</$list>
</div>
</$list>
<br>
</$list>
</$wikify>
</$list>
\end
I tried to modify it and created a new macro to list the todos
for today only using this tip from JanJo.
\define ToDo-now() [<currentTiddler>search-replace::regexp[.*<<ToDo ".+?" ".*?" "(.*?)">>.*],[$1]match<now>]
\define ToDo-sidebar-now()
<$list filter="[regexp:text<ToDo-string>!is[system]!is[current]first[1]]" emptyMessage={{$:/plugins/JJ/ToDo/settings##done-message}} variable="x">
<<ToDo-search>>
<$wikify name="ToDo-filter-result" text=<<ToDo-filter>>>
<$list filter="[regexp:text<ToDo-string>!is[system]!is[current]subfilter<ToDo-filter-result>get[text]join[spl1t]]" variable="longstring">
<$list filter="[<longstring>splitregexp[\n|spl1t]regexp<ToDo-string>sortsub<ToDo-now>]" variable="line">
<div style="margin-left:2em;text-indent:-1em;" title=<<line>> > {{{ [<line>search-replace::regexp[.*<<ToDo ".+?" ".*?" "(.*?)">>.*],[$1]] }}}
<$list filter="[search<line>]">
<$list filter="[<line>search-replace::regexp{$:/plugins/JJ/ToDo/settings##sidebar-search},[$1]]" variable="line-clean"><<line-clean>></$list>
</$list>
</div>
</$list>
<br>
</$list>
</$wikify>
</$list>
\end
But this is listing all the todos like the previous macro does. Can someone help to correct it ?