Hi Mat

I've since added a cycle[] filter operator to the x-listops filters to make 
this even easier. This isn't part of the core -- you'll need to copy over 
the version of $:/core/modules/filters/x-listops.js 
<http://listops.tiddlyspot.com/#%24%3A%2Fcore%2Fmodules%2Ffilters%2Fx-listops.js>
 from here. <http://listops.tiddlyspot.com/>

There's a couple of demos on the listops wiki to illustrate it's use -- 
without and with the use of the keep[] filter operator. This allows the 
cycling of multiple lists of items within one list field.

regards

On Wednesday, 9 March 2016 12:11:58 UTC+2, Mat wrote:
>
> Matabeles recent work on listops inspired me to make an attempt at a cycle 
> button, i.e a button to toggle e.g "a - b - c - a - b ..."
>
> I was surprised at how compact it turned out with listops so just thought 
> I'd share it. Sorry if I'm sharing something totally obvious but I think 
> the solutions I've seen so far have been more complex.
>
> title:MyList
> text:a b c
>
>
> ...and in some other(!) tiddler
>
> <$button>
> <$action-listops $tiddler="MyList" $field="text" $filter={{MyList}} 
> $subfilter="+[putlast[]]"/>
> <$list filter="[list[MyList!!text]first[]]"><$view field="title"/></$list>
> </$button>
>
>
> Again, sorry if obvious.
>
> <:-)
>
>
>
>
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/92a6ff25-9872-49c3-b6a3-ebac1dd1273b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to