On Monday, September 13, 2021 at 2:18:59 PM UTC-7 Mark S. wrote:
> Another way is to put the entire nested listed set into a text field of a
> wikify widget. Then render and enlist the output. Sometimes there are
> additional complications if your output tiddlers (tasks) have spaces in
> them.
>
As Mark suggests, using the $wikify widget may be the most straightforward
way to handle your needs...
Try this:
```
\define getList()
<$list filter="[has[frequency]]">
<$list filter="[all[current]!days:last-contact{!!frequency}]">
//[//[<$link/>]//]//
</$list>
</$list>
\end
<$wikify name="theList" text=<<getList>>>
<$vars total={{{ [has[frequency]count[]] }}}>
<$vars todo={{{ [enlist<theList>count[]] }}}>
<$vars done={{{
[<total>subtract<todo>divide<total>multiply[100]addsuffix[%]] }}}>
<$vars time={{{ [enlist<theList>get[time-needed]sum[]] }}}>
<<total>> tasks, <<percent>> are completed:
<ol><$list filter="[enlist<theList>]"><li><$link/></li></$list></ol>
Total time needed: <<time>> minutes.
</$vars>
</$vars>
</$vars>
</$vars>
</$wikify>
```
Notes:
* The `getList()` macro outputs a list of incomplete tasks (your original
nested filters)
* The list items are wrapped in `[[` and `]]`, using italics syntax to
separate the brackets so they will be output as literal text. This handles
tiddler titles that contain spaces.
* `$wikify` invokes `getList()` and captures the output as plain text,
stored in `theList`
* Next, we calculate the some statistics: total=number of tasks,
todo=number of incomplete tasks, done=percentage complete, time=total time
need to complete the remaining tasks
* Then, we display the total and percent complete
* Followed by a numbered bullet list of links to incomplete tasks
* and finally, the total time needed to complete those tasks
That about covers it.
enjoy,
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/34436d0e-d2d3-49b8-bae6-5842e77ab941n%40googlegroups.com.