Re: [tw5] Sample (random) filter operation

2019-09-11 Thread Mohammad
Thanks Mark! Yes, in TW actually this is useful when one displays a random tiddler content for example at startup! I have post a question in separate post on this. --Mohammad On Tuesday, September 10, 2019 at 11:01:58 PM UTC+4:30, Mark S. wrote: > > That's all based on Tobias' random filter. Lo

Re: [tw5] Sample (random) filter operation

2019-09-11 Thread Mohammad Rahmani
Which of those solution does not use JS? Of course I think in 5.1.20+ it is possible to use math operators plus the now macro to create random number Best wishes Mohammad On Tue, Sep 10, 2019 at 10:24 PM @TiddlyTweeter wrote: > See > https://groups.google.com/forum/#!searchin/tiddlywiki/rand

Re: [tw5] Sample (random) filter operation

2019-09-10 Thread @TiddlyTweeter
Ciao Mark et al I wish we had better ways to improve the wheel other than someones serendipitous memory of times past. Mark makes interesting points about the refresh process and the underlying api. TT On Tuesday, 10 September 2019 20:31:58 UTC+2, Mark S. wrote: > > That's all based on Tobi

Re: [tw5] Sample (random) filter operation

2019-09-10 Thread 'Mark S.' via TiddlyWiki
That's all based on Tobias' random filter. Looking at the code, it appears nearly identical Devin's. I suppose there's only so many ways to wrap that functionality. I guess one slight improvement would be to pass in context that would prevent the number from changing every time the tiddler was r

Re: [tw5] Sample (random) filter operation

2019-09-10 Thread @TiddlyTweeter
See https://groups.google.com/forum/#!searchin/tiddlywiki/random$20numbers$20josiah%7Csort:date/tiddlywiki/N263pebgCYI/bWkecUA7AwAJ On Tuesday, 10 September 2019 19:41:37 UTC+2, Mohammad wrote: > > Hi TT > Is there any filter or math operator to do this? > > > Best wishes > Mohammad > > > On Tue,

Re: [tw5] Sample (random) filter operation

2019-09-10 Thread Mohammad Rahmani
Hi TT Is there any filter or math operator to do this? Best wishes Mohammad On Tue, Sep 10, 2019 at 9:51 PM @TiddlyTweeter wrote: > One query. DO we need JavaScript for that? > > I thought it was doable in TW already? > > TT > > On Tuesday, 10 September 2019 19:11:51 UTC+2, Mohammad wrote: >>

Re: [tw5] Sample (random) filter operation

2019-09-10 Thread @TiddlyTweeter
One query. DO we need JavaScript for that? I thought it was doable in TW already? TT On Tuesday, 10 September 2019 19:11:51 UTC+2, Mohammad wrote: > > One question, > How about the performance effects? It seems when a tiddler uses this > filter every change on the screen trigger the simple fil

Re: [tw5] Sample (random) filter operation

2019-09-10 Thread Mohammad Rahmani
One question, How about the performance effects? It seems when a tiddler uses this filter every change on the screen trigger the simple filter! Best wishes Mohammad On Tue, Sep 10, 2019 at 12:35 AM Devin Weaver wrote: > For anyone curious here is a neat filter option to grab a random tiddler

Re: [tw5] Sample (random) filter operation

2019-09-09 Thread Mohammad Rahmani
Great share Devin! It would be nice to add a small instruction for people how like to use your script / filter in their wiki! Best wishes Mohammad On Tue, Sep 10, 2019 at 12:35 AM Devin Weaver wrote: > For anyone curious here is a neat filter option to grab a random tiddler > from a list: > >

[tw5] Sample (random) filter operation

2019-09-09 Thread Devin Weaver
For anyone curious here is a neat filter option to grab a random tiddler from a list: <$list filter="[tag[quote]sample[3]]"> <$transclude/> will show you three random tiddlers with the quote tag. /*\ title: $:/filters/sample.js type: application/javascript module-type: filteroperator Filter t