Or,

What about a special pragma
\onopen ()
actions 
\end

Regards
Tony

On Saturday, November 30, 2019 at 3:20:31 PM UTC+11, TonyM wrote:
>
> Eric,
>
> An idea riffing off this code pattern.
>
> I have seen this code pattern being used a number times to overcome some 
> limitations within tiddlywiki. As I observed in your original solution, 
> using the number to effect the font size was in a way capturing or using 
> the "number" in the font so they need not be retained for later. 
>
> In your second example I understand you are creating a new array of items 
> "tagcount;tagname" use this for the sor,t then discarding the prefix 
> tagcount and then presenting each tagname. 
>
>    - I have done something similar in another case, there are other 
>    methods but the usually involve a two step process, and usually a 
> triggers, 
>    generate a list then interrogate it.
>    - Since this is an area that often needs this kind of workaround it 
>    would be nice if we could provide a method to simplify this. A kind of 
>    concatenated key list or something, or temporary array.
>
> *Alternatively,*
> To avoid the need for an additional trigger to generate the first list, 
> before interrogating that list. It would be nice if we could trigger an 
> action on opening a tiddler (to re/generate the list), then its wiki text 
> interrogates the generated list. I have raised a GitHub issue to do with 
> being able to add/trigger actions to any button, and the desire to be able 
> to do so on any navigation to a tiddler. I could imagine a tiddler field 
> action-on-open containing say {{$:/regenlist}} a set of triggered actions. 
>
> This would allow such intermediate lists to be created in a "working" 
> tiddler on opening a tiddler, that then lists its contents in a desired 
> order.
>
> *A pattern*
> If we could trigger the generation of a list, as defined in a filter, that 
> builds a list of temporary tiddlers, with all possible sort keys 
> represented in the title and fields we could then sort by any field, as 
> many additional times as we want, using the same temporary tiddlers.
>
> I hope I am making sense.
> Tony
>
>
>
> On Saturday, November 30, 2019 at 12:16:53 PM UTC+11, Eric Shulman wrote:
>>
>> On Thursday, November 28, 2019 at 9:08:32 AM UTC-8, TiddlyTweeter wrote:
>>>
>>> I was struck by the simplicity of this solution!
>>> One thing I want to do, but don't know how, is to change the filter so 
>>> that the results can be presented in *Count Order *(highest to lowest).
>>>
>>
>> It's a bit tricky... you can't directly sort tags by the number of items 
>> they are tagging...
>>
>> But I've managed to do it with a bit of trickery: 
>> http://tiddlytools.com/filtergenerators.html
>>
>> 1) get all the tags.
>> 2) wikify a list that shows "tagcount;tagname", with the tag count 
>> numbers padded with leading zeros
>> 3) sort that list and remove the tag count prefix from each item, and 
>> wikify that.
>>
>> The result is a list of tags, sorted by number of items they tag.  Then I 
>> output that list as a tag cloud.
>>
>> Note: I also modified the tag display so that each tag pill shows the tag 
>> name AND tag count.
>>
>> enjoy,
>> -e
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/337e2f5c-ad8a-4bd5-9e33-e895c248a132%40googlegroups.com.

Reply via email to