Nice solution Eric! I tested this for hundreds of tiddlers (created by
TiddlerCommander) and it seems a bit slow but works great!
I gonna to use this in my Dynamic Tables macro in Shiraz 2.0.0 plugin!
Cheers
Mohammad
On Saturday, November 30, 2019 at 11:17:15 AM UTC+3:30, Eric Shulman wrote:
>
> On Friday, November 29, 2019 at 10:08:25 PM UTC-8, Atronoush wrote:
>>
>> Eric,
>> What should I do if the tiddler name has space like "dat04 new"?
>>
>
> Use this revised definition for "getitems()":
> \define getitems()
> <$list filter="[tag[test]]">
> <$text text="[["/>{{{ [<currentTiddler>getindex[ia]divide[1000]fixed[3]
> removeprefix[0.]] }}};<<currentTiddler>><$text text="]]"/>
> </$list>
> \end
>
> What it does is to enclose each generated title inside doubled
> squarebrackets, which ensures that they are treated as single titles in all
> subsequent filter handling
>
> Thus, if your tiddlers are named
> dat01
> dat 02
> dat 03 with more words
> dat04
>
> The generated list of items will be:
> [[nn;dat01]] [[nn;dat 02]] [[nn;dat 03 with more words]] [[nn;dat04]]
>
> The rest of the code remains the same.
>
> 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/0dfabb8d-bcc7-4047-a1f5-4f30b7649383%40googlegroups.com.