Filter by count

70 views
Skip to first unread message

Aidan Grey

unread,
Sep 10, 2019, 3:04:02 PM9/10/19
to TiddlyWiki
Hey all,

I've got the following list:

<$list filter="[tag[group]!title[groupTemplate]sort[title]]">
<$link>{{!!title}}: <$count filter="[tag{!!title}]"/></$link><br>
</$list>

How do I adjust that to filter and show only the items that have a count of 0?

Thanks
Aidan

Mark S.

unread,
Sep 10, 2019, 5:44:53 PM9/10/19
to TiddlyWiki

I'm not sure if this is what you really want. Your original used the count widget to get the count. But you
already know that anything that shows up will have a count of zero.

<$list filter="[tag[group]!title[groupTemplate]sort[title]]" variable="mytitle">
<$list filter="[tag
<mytitle>count[]regexp[^0$]]" variable="nul">
<$link><
<mytitle>>: <<nul>></$link><br>
</$list>
</$list>


TonyM

unread,
Sep 10, 2019, 6:43:43 PM9/10/19
to TiddlyWiki
Marks solution!

However users may find the 5.1.20 match operator better

match[0] or !match[0] rather than the regexp equivalent regexp[^0$]

Regards
Tony
Reply all
Reply to author
Forward
0 new messages