Sameday

111 views
Skip to first unread message

Ray Vermey

unread,
Mar 13, 2021, 9:49:31 AM3/13/21
to TiddlyWiki
Hi

can anyone tell me why this filter returns also $:/HistoryList (which is huge) even when !is[system] is included? It returns all my tiddles btw...

<$list filter="[sameday:created[20210313]][!is[system]]">

<h2><$link>''<<currentTiddler>> ''</$link></h2>

{{!!text}}

</$list>

Tx

Ray

si

unread,
Mar 13, 2021, 11:33:52 AM3/13/21
to TiddlyWiki
I think its because your filter lists two separate runs, which returns tiddlers that match any of those two runs. You need just need to squeeze the whole expression into a single run: [sameday:created[20210313]!is[system]]

Ray Vermey

unread,
Mar 13, 2021, 11:47:50 AM3/13/21
to Mohammad Rahmani
Yes i noted, thanks!

But now i run into other list filters in tiddlers created today that get executed so to say.
How can i prevent that?
Create for those tiddlers separate SCRIPT fields or something?
Or can it be done simpler?

Ray

Op za 13 mrt. 2021 om 17:33 schreef si <matthew...@gmail.com>:
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/42377c1b-28bd-4faa-a64c-e651fce85663n%40googlegroups.com.

si

unread,
Mar 13, 2021, 1:52:05 PM3/13/21
to TiddlyWiki
>>> But now i run into other list filters in tiddlers created today that get executed so to say.

I may be misunderstanding you - are you saying that some of the tiddlers that get transcluded by your widget themselves have list filters, and you would like to display the plain text rather than actually execute the widget?

I'm not 100% sure but I think you can display the plain text by replacing {{!!text}} with <$text text={{!!text}}/>

Ray Vermey

unread,
Mar 13, 2021, 1:58:31 PM3/13/21
to Mohammad Rahmani
Yes it looks like tidders that contain scripts for TW get "evualated" but maybe i see things wrong.

TW5 is very hard to learn for me...
Now this one says Recursive transclusion error:  <$list filter="[sameday:created[20210312]][sameday:modified[20210312]!is[system]![12 Mar]]">
Why is THIS wrong??
Will i ever learn?? :-)

Ray

Op za 13 mrt. 2021 om 19:52 schreef si <matthew...@gmail.com>:

si

unread,
Mar 13, 2021, 2:56:38 PM3/13/21
to TiddlyWiki
The reason for that error is that the tiddler that contains your code is trying to transclude itself. But then this transcluded tiddler contains the same code, so it tries to transclude itself again and again. It's like if you hold a mirror up in front of another mirror - you will see an image that seems to contain itself infinitely: see images

Anyway you can avoid this by making sure to exclude the current tiddler from your filter: !is[current]

Ray Vermey

unread,
Mar 13, 2021, 8:14:19 PM3/13/21
to Mohammad Rahmani
Ok i see, good! Thanks, but.... i thought i solve it by tagging the tiddlers with 'code' as 'script'
Now this line seems to ignore that..: <$list filter="[sameday:created[20210310]][sameday:modified[20210310]!is[system]!tag[script]]">
What now??? Looks ok isnt it??
#puzzled...

Ray

Op za 13 mrt. 2021 om 20:56 schreef si <matthew...@gmail.com>:

Ray Vermey

unread,
Mar 14, 2021, 6:21:50 AM3/14/21
to Mohammad Rahmani
Ah i solved it by separating the modified and created parts like this: <$list filter="[sameday:modified[20210310]!is[system]!tag[script]][sameday:created[20210310]!is[system]!tag[script]]">

Op zo 14 mrt. 2021 om 02:13 schreef Ray Vermey <rayv...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages