Hi

I think that would be the way to go for list operations -- an 
'English-like' syntax would be nice, as in:

filter="[list[!!mylist]]put(one two [[and three]] before[this item])]"

- or

filter="[list[!!mylist]]replace([[mymarker]] with[this item])]"

I await a standardised syntax, and hopefully one or two examples :-)

regards

On Thursday, 15 October 2015 13:10:11 UTC+2, Tobias Beer wrote:
>
> Hi Metabele,
>  
>
>> The way I have set up the widget -- you can use the full form of the 
>> filter using the $filter= attribute, like this:
>>
>> <$x-mangletags $list="mylist" $filter="[list[!!mylist]] [[---oOo---]] 
>> +[replace[Wednesday]]"/>
>>
>
> Ah, of course (little facepalm), it always operates on the current 
> tiddler's list by default.
> That would be something this demo would benefit from mentioning. ;-)
>  
>
>> The code could be changed to insert more than one string, with syntax 
>> something like this (only at one position though):
>>
>> <$x-mangletags $list="mylist" $subfilter="[[one]] [[two]] [[three]] 
>> +[replace:Wednesday[3]]"/>
>>
>> -- but I'm not sure if this serves any use.
>>
>
> I would not be working on index numbers too much but rather named items.
>
> Anyhow, I think there are some severe restrictions in terms of giving 
> filters the desired arguments so I opened up this:
>
> *#2029 extended filter syntax for variable arguments*
> https://github.com/Jermolene/TiddlyWiki5/issues/2029
>
> Best wishes,
>
> — tb
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/527150fa-cd56-494b-af21-88d70a60974f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to