Halfway down this thread, Jeremy suggested an approach for selecting a 
random tiddler which seemed to me to be the cleanest method.  I don't know 
if anyone tried to implement this $action-chooserandom widget, so I did it 
myself and thought I'd share the result.  The notation is essentially the 
same as Jeremy's suggestion, except I used attribute names with the $ 
prefix (is there a good reason for the inconsistency on use of $ in 
different widgets? I often get errors due to guessing wrongly, and 
sometimes these can be data-deleting errors), and I also have a $field 
attribute.

My widget can be found here:
http://ng110.tiddlyspot.com/#%24%3A%2Fng110%2Fwidgets%2Faction-chooserandom.js

and an example of use can be found here:
http://ng110.tiddlyspot.com/#Choose%20Random%20Demo

Cheers,

Neil.



On Sunday, 12 October 2014 11:04:11 UTC+1, Jeremy Ruston wrote:
>
> Hi Philip
>
> Well done, very cool.
>
> I think it can be done without modifying the navigator widget though, by 
> introducing a "randomly choose from filter" action widget:
>
> <$button>
> <$action-chooserandom filter="[is[tiddler]]" 
> tiddler="$:/config/randomtiddler"/>
> <$action-navigate to={{$:/config/randomtiddler}}/>
> Goto random tiddler
> </$button>
>
> Best wishes
>
> Jeremy
>
>
>  

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to