What's wrong with this list ..?

40 views
Skip to first unread message

vinvi...@gmail.com

unread,
Mar 7, 2021, 4:21:57 AM3/7/21
to TiddlyWiki

Hello,

Can anyone tell me what's wrong with this code?


\define tagging() $(currentTiddler)$


<$list filter=[search:title[,]] variable=tagname>

<$checkbox tiddler=<<tagname>> tag=<<tagging>> ></$checkbox> <<tagname>>

</$list>


It should show a list of all tiddlers that have a comma in the Title. With a checkbox you can tag these tiddlers to the currentTiddler. It works fine, only a mess is created at the very bottom of the list.

For example (Ii) Specific-01, (and a few more tiddlers) is displayed a second time (at the bottom) in this way: $:/state/toc/Style/(G)/(Ii)/(Ii) Specific-01,-(CPc) Specific-01,–642288075

What is wrong?


 

Soren Bjornstad

unread,
Mar 7, 2021, 7:57:30 AM3/7/21
to TiddlyWiki
Looks like you are getting some state tiddlers in your list because some tiddlers that contain commas in their titles need associated state for whatever reason. You can add !is[system] to exclude the state tiddlers, assuming none of the tiddlers you're trying to find are system tiddlers:

\define tagging() $(currentTiddler)$

<$list filter="[!is[system]search:title[,]]" variable=tagname>
<$checkbox tiddler=<<tagname>> tag=<<tagging>> ></$checkbox> <<tagname>>
</$list>

vinvi...@gmail.com

unread,
Mar 7, 2021, 9:16:30 AM3/7/21
to TiddlyWiki
That solved the problem. 

Thank you,





Op zondag 7 maart 2021 om 13:57:30 UTC+1 schreef Soren Bjornstad:
Reply all
Reply to author
Forward
0 new messages