Hi Tobias

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]]"/>

-- however, notice that you have to re-enter the reference to the list, 
which has already been specified in the $list= attribute.

Or you can use the short form subfilter using the $subfilter= attribute 
(which is applied after the already specified list), like this:

 <$x-mangletags $list="mylist" $subfilter="[[---oOo---]] 
+[replace[Wednesday]]"/>

-- the widget simply inserts the TextReference of the input list before 
applying the subfiter
-- the new string is then appended to the list
-- then run through the replace[] filter, which removes the newly appended 
string and places it in the desired location (&removing the marker)
-- in the case of the putbefore[] and putafter[], the marker remains

regards

On Thursday, 15 October 2015 12:37:36 UTC+2, Tobias Beer wrote:
>
> Hi Metabele,
>
> I think it is very important for your demo to give a basic list as to what 
> each filter operator is doing.
> Learning by example can be a challenging exercise.
>
> When I read this...
>
> <$x-mangletags $subfilter="+[allafter[Wednesday]]"/>
>
> Then without any wrapping widget, what is this a subfilter to?
>
> As explained elsewhere, this...
>
> <$x-mangletags $subfilter="[[---oOo---]] +[replace[Wednesday]]"/>
>
> Does not appear valid in terms of how filters work.
>
> If you want to specify items via filter, I think it needs to be more 
> something like:
>
> <$button>
> <$action-setlist $tiddler="foo" $list="bar" 
> $items="[list[foo!!bar]replace:Wedneday[---oOo---]]"/>
> replace Wednesday with ---oOo--- 
> </$button>
>
> 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/928c9d03-a916-4116-bcb9-6d78bc63c7ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to