[tw5] Re: dynamically building a string by concatenation in a macro

2022-01-23 Thread PMario
On Saturday, January 22, 2022 at 7:07:59 PM UTC+1 CarloGgi wrote: ... > Now, before I ask why ON EARTH the above code doesn't work, let me say > that I expect for it to be because of how macros are parsed and when macro > substitution is made, in which case I will do a little comment on it

Re: [tw5] Re: dynamically building a string by concatenation in a macro

2022-01-23 Thread CarloGgi
@jeremy thanks for the clarification. So it seems that you can correctly (in the sense of *syntactically* correct) use a macro call as argument of a widget attribute, but functionally fail to have it work as intended. This shows clearly that TW is way too much stuffed with booby-traps and

Re: [tw5] Re: dynamically building a string by concatenation in a macro

2022-01-22 Thread Charlie Veniot
Simply stated: use a Google Form (or something similar) to submit bugs. - Cognitively and in terms of sensory-overload, Github is brutal in general, but especially when one is dealing with a cognitive disability. I can't offer up suggestions on how to change the Github interface,

Re: [tw5] Re: dynamically building a string by concatenation in a macro

2022-01-22 Thread Jeremy Ruston
Hi Charlie > I often say "first things first, consider upgrading", but 5.2.1 has the same > issue. So I say stick with what you have if it is working no-worse than the > latest. The problem is that the OP is using the macro "templatename" as an attribute value in the

[tw5] Re: dynamically building a string by concatenation in a macro

2022-01-22 Thread Charlie Veniot
*Good stuff !* I often say "first things first, consider upgrading", but 5.2.1 has the same issue. So I say stick with what you have if it is working no-worse than the latest. As for bug-reporting, that, to me, is a crappy process that needs some tender loving care, including a need to

[tw5] Re: dynamically building a string by concatenation in a macro

2022-01-22 Thread CarloGgi
It worked like a charm, thanks! If it is really a bug, is there a dedicated place to submit it for analysis? My TW version is 5.2.0 Thanks again and regards, CG On Saturday, January 22, 2022 at 9:57:46 PM UTC+2 cj.v...@gmail.com wrote: > TiddlyTalk is a pain. Let me try pasting that code

[tw5] Re: dynamically building a string by concatenation in a macro

2022-01-22 Thread Charlie Veniot
TiddlyTalk is a pain. Let me try pasting that code again so that it shows okay over there. ``` <$button> <$action-createtiddler $basetitle="testTiddler" $template={{{ [[BASENAME-]addsuffix{!!grammar_class}] }}} > <$action-navigate

[tw5] Re: dynamically building a string by concatenation in a macro

2022-01-22 Thread Charlie Veniot
I'm thinking you found a bug related to how the action-createtiddler handles the $template parameter. In the meantime (i.e. until there is a fix or somebody can explain this "feature" going on) ... The following seems to work A-1 for me in my testing (ignore the "pre" tags): <$button>