[tw5] TEST: Codes in Google Group and Talk

2021-12-16 Thread Mohammad
Symptom If you write codes in your post in Google Group, it may be displayed wrongly when is fetched by Tiddlywiki Talk and is displayed in Talk Forum! It seems if one wraps codes in codeblock e.g. triple backticks, they will be shown correctly in Talk! Example i Code wrapped in backticks

Re: [tw5] One approach: summing untold number of fields from untold number of tiddlers

2021-12-16 Thread Mohammad
In my own solution I actually used ``` ''total:'' <$text text={{{ [fields[]regexp[aaa]] :map[all[tiddlers]get] +[sum[]] }}}/> ``` and I got 1077!!! The source of error was two tiddlers have field `aaa2` and my filter accounted for one! because the way `:map` works!! On Friday, December 17,

Re: [tw5] One approach: summing untold number of fields from untold number of tiddlers

2021-12-16 Thread Mohammad
> > > [fields[]regexp[aaa]] :map[all[tiddlers]getsum[]] +[sum[]] > > > or to match your output: > > ''total:'' <$text text={{{ [fields[]regexp[aaa]] > :map[all[tiddlers]getsum[]] +[sum[]] }}}/> > > >> Brian, This is a bit tricky! I did myself before I saw your solution and I got wrong total

Re: [tw5] One approach: summing untold number of fields from untold number of tiddlers

2021-12-16 Thread Mohammad
It is strange, what I see here in GG is different from what is fetched in Talk! I think codes need to be wrapped in codeblock! @admins please have a look! On Friday, December 17, 2021 at 7:38:28 AM UTC+3:30 brian@gmail.com wrote: > Charlie, > > For more good fun, I wondered if the dynamic

[tw5] Re: Javascript non-macros

2021-12-16 Thread Louis Davout
Thanks, I will look at creating custom widgets. If what I want to do is simple, such as set a field to a constant value, yea sure I can do that. But once something involves complex logic I often get stymied. It seems every time I gain an insight into how TW works, I discover it doesn't work as

Re: [tw5] One approach: summing untold number of fields from untold number of tiddlers

2021-12-16 Thread Brian Theado
Charlie, For more good fun, I wondered if the dynamic filter part of your solution could be implemented using the new filter features of 5.2.0. Here's what I came up with that seems to work: [fields[]regexp[aaa]] :map[all[tiddlers]getsum[]] +[sum[]] or to match your output: ''total:'' <$text

Re: [tw5] assigning macro output to a variable

2021-12-16 Thread Brian Theado
CarloGgi, On Wed, Dec 15, 2021 at 2:02 PM CarloGgi wrote: > \define check_feature(feature) [getindex[$feature$]trim[]match[Y]] > > <$set name="has_feature" value=<$macrocall $name='check_feature' > feature='IFTTT'/> > > > <$list filter="[tag[system]filter]" variable="sys"> >

[tw5] Re: external image handling seems laggy

2021-12-16 Thread Jeremy Ruston
Hi Gavin, Has anyone implemented a smoother handling of loading and image via > _canonical_uri_ in an image widget. Something like a CSS fade animation ? > I think we'd need a core modification for that: an additional class for the image widget that is only applied when the image is

[tw5] external image handling seems laggy

2021-12-16 Thread Gavin Gamboa
Has anyone implemented a smoother handling of loading and image via _canonical_uri_ in an image widget. Something like a CSS fade animation ? [img width=400 [my-image]] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this

[tw5] Re: Javascript non-macros

2021-12-16 Thread PMario
On Thursday, December 16, 2021 at 4:24:14 PM UTC+1 davou...@gmail.com wrote: > The dev documentation > states > "Macros are just used to return a chunk of wikitext for further processing. > They should not make modifications to

[tw5] One approach: summing untold number of fields from untold number of tiddlers

2021-12-16 Thread Charlie Veniot
*Dynamic creation of filters !!!* Say that one has an untold number of numeric fields spread throughout a TiddlyWiki instance, all of those fields having names that match a pattern. (For example: say all of the fields have "aaa" in their names.) And say any one tiddler can have an untold

[tw5] Javascript non-macros

2021-12-16 Thread Louis Davout
The dev documentation states "Macros are just used to return a chunk of wikitext for further processing. They should not make modifications to tiddlers in the wiki store." Is there such a thing as a Javascript non-macro? Is there a

[tw5] Re: Selectively summing together field values?

2021-12-16 Thread Charlie Veniot
All of your "aaa" fields to be summed are just in the one tiddler. That changes everything. I thought your "aaa" fields were spread across multiple tiddlers. Yeah, my solution is for a much more complex problem. On Thursday, December 16, 2021 at 9:04:57 AM UTC-4 Dave Kor wrote: > Thanks for

[tw5] Re: Selectively summing together field values?

2021-12-16 Thread Dave Kor
Thanks for the info. After looking through my stuff I realized I had already solved this several months ago. The solution is rather simple: {{{ [[Data]fields[]prefix[aaa]] :map[[Data]get] +[sum[]] }}} On Thursday, December 16, 2021 at 11:43:16 AM UTC+8 cj.v...@gmail.com wrote: > ARG! I forgot