Hi I have posted my most recent efforts here <http://listops.tiddlyspot.com/>.
I have added a new filter: -- the putfirst[] filter moves items from the tail of the list to the head of the list -- to add items to the beginning of the list, append them to the tail, then move them with this filter to the head I have moved all of the listop filters into one file -- and called this 'x-listops.js' (extended listops) Need to adapt the code of the putbefore[], putafter[] and replace[] filters to deal with more than 1 item -- can't work out how to do this :-( regards On Friday, 16 October 2015 17:26:13 UTC+2, Tobias Beer wrote: > > Hi Metabele, > > >> <$action-listops $list="myfield" $subfilter="one two [[twenty one]] >> +[putbefore:2[Wednesday]putafter[Friday]]"/> >> >> Witch is intended to: >> -- append three items to the list (one two [[twenty one]]) >> -- move the last two appended items (two [[twenty one]]) before >> 'Wednesday' >> -- move the first appended item after 'Friday' (number of items to move >> defaults to 1) >> >> What do you think? and how do I get this to work? >> > > Now that I understand the concept, > your example and explanations sound like what I would expect now. > Haven't yet looked at your sourcecode yet. will do in a bit. > > While the above should work if implemented as designed, have you tried > this yet... > > <$action-listops $list="myfield" $subfilter="two [[twenty one]] > +[putbefore:2[Wednesday]] one +[putafter[Friday]]"/> > > ? > > 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/2e7d7f67-4ae8-44d2-9bd6-7c0f8fdf17c3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

