Matt,

I think such a filter operator would naturally be in the core given similar 
support in most languages, and tiddlywiki uses filters to operate its 
fundamental logic.

However this can be dependant on the level of "bloat" to the core. If it 
requires a lot of bytes to implement it should be left out and placed in a 
plugin, perhaps in the tiddlywiki plugin library but documented on 
tiddlywiki.com. It is traditional to present a plugin first, unless you can 
persuade the "developers" over in GitHub or here to include it in the core.

I expect a lot of people would not use this feature, but I can see why it 
would be valuable to some. Text based games, Flash card study notes, 
randomised questions, random stories, daily message, random post etc... 

Regards
Tony


On Sunday, 20 January 2019 15:21:50 UTC+11, Matthew Lauber wrote:
>
> All, 
>    I've opened a Pull Request 
> <https://github.com/Jermolene/TiddlyWiki5/pull/3712> for feedback for a 
> filter operator that I think could be useful in a variety of situations.  
> This is a "shuffle" operator.  It takes as a optional parameter a "seed" 
> value, and based on that value, randomizes the list.  So, every time you 
> shuffle with the seed "test" you'll get the list back in the same random 
> order, but if you then seed with "apple", you've get a different order.  If 
> you don't provide a seed, you'll get a new order every time it's rendered.  
>
> With this filter operator it's possible to:
>
>    - Display a list in a random order via "shuffle[]"
>    - Display the list in an order that changes when you press a button, 
>    via "shuffle{state tiddler}"
>    - Select a random subset of tiddlers from a list via 
>    "shuffle[]first[N]"
>    - Select a random subset of tiddlers from a list that changes when you 
>    press a button, via "shuffle{state tiddler}first[N]"
>
> I think this is a pretty basic tool that allows users to invent a variety 
> of solutions on top of it, and I think it would be useful.  I'd like to 
> hear feedback on whether people think it's worth putting in the core, or if 
> it should stay as plugin.  (It's available at present from my plugin 
> library at https://mklauber.github.io/tw5-plugins)
>
> Matt Lauber
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/6a6e0e01-bce2-4e0c-826e-2ae5427910d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to