[tw5] Re: filter operators on dictionary contents

2019-02-07 Thread Mohammad
Added to TW-Scripts.

On Wednesday, January 30, 2019 at 3:55:27 PM UTC+3:30, S. S. wrote:
>
>
> I found this issue intriguing, and remembered Thomas Elmiger's Compare 
> if-then-else Style in Wikitext 
> 
>
> So this should also work - meaning it finds and lists Data Tiddlers that:
>
>- have an index named:  *validateAll*
>- that has its data: *true*
>- and as a bonus, it makes a link to the tiddlers
>
>
> \define make-link() <$link to="$(display)$">$(display)$
>
> <$list filter="[type[application/x-tiddler-dictionary]]" variable=dataTid>
> <$set name="display" value=<>>
> <$set name="data" tiddler=<> index="validateAll">
> <$list filter="[] -[[true]]" emptyMessage=<>>
> 
> 
> 
> 
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3c7ff94d-a7b5-47ec-931f-a604765705e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: filter operators on dictionary contents

2019-01-30 Thread TonyM
Nice ss

Make link is worth being a global macro.

 Thanks for sharing

Tony

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6018ac3e-8821-4768-99b7-cc7f07166621%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: filter operators on dictionary contents

2019-01-30 Thread S. S.

I found this issue intriguing, and remembered Thomas Elmiger's Compare 
if-then-else Style in Wikitext 


So this should also work - meaning it finds and lists Data Tiddlers that:

   - have an index named:  *validateAll*
   - that has its data: *true*
   - and as a bonus, it makes a link to the tiddlers


\define make-link() <$link to="$(display)$">$(display)$

<$list filter="[type[application/x-tiddler-dictionary]]" variable=dataTid>
<$set name="display" value=<>>
<$set name="data" tiddler=<> index="validateAll">
<$list filter="[] -[[true]]" emptyMessage=<>>







-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/92ae0bbd-8e56-44b4-97de-b748e59221d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: filter operators on dictionary contents

2019-01-29 Thread S. S.

Alex,

I don't know if this is the best way to do it, but I believe it should work 
until someone posts a more elegant solution.

<$list filter="[type[application/x-tiddler-dictionary]]" variable=dataTid>
<$list filter="[getindex[validateAll]]">
<$reveal type="match" text="true" stateTitle=<> 
stateIndex="validateAll">
<>





Regards

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dec1098a-9c77-4886-9153-5ac9899df765%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.