Tobias

How/where  to insert tagstring.readBracketedList($1) into a call to
forEachTiddler, where $1 is the tagstring?

<<forEachTiddler where 'tiddler.tags.contains("$1")'
sortBy 'tiddler.title'

etc.
>>

I am using a function kindly provided by Måns which uses the call to
forEachTiddler to generate a list of tiddlers with the specified tag.
In
the example below case to get all tiddlers tagged with 'kicks'.

<<tiddler MeMoList with: kicks>>

What I would like to be able to do is generalize the function to
return a list of tiddlers that match one or more tags. In
the example below case to get all tiddlers tagged with 'kicks' or
'terms' or 'basic'.

<<tiddler MeMoList with: 'kicks terms basic'>>

Thanks for the help!

Steve

On Jun 12, 5:41 am, Tobias Beer <[email protected]> wrote:
> The core function you are looking for is called readBracketedList()
> and it turns the following string of tags...
>
> tagstring='foo [[bar baz]] "mumble frotz gronk"';
>
> into the following array of tags...
>
> tags=['foo','bar baz','mumble frotz gronk'];
>
> ...using the following syntax:
>
> tags=tagstring.readBracketedList();
>
> Hope that helps,
>
> Cheers, Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to