[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread TonyM
codaCoda, I have updated the content of "&" to return text only <$text text={{{ [all[current]split[ ]] +[join[]] }}}/> *Important guidance* is - the "filter" given to the transclusion needs each value to be treated as a title hence - $:/string/ [] / [{!!fieldname}] [[/suffix/]]

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread coda coder
Tony - Looks good on a first pass... I'll need to look at it properly tomorrow (it's late here). On Wednesday, December 2, 2020 at 6:59:28 PM UTC-6 TonyM wrote: > And using codaCodas examples prior; > > <$wikify name=style-value text="""color: {{!!color}}"""> > style=<> > > > Check this

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread TonyM
And using codaCodas examples prior; <$wikify name=style-value text="""color: {{!!color}}"""> style=<> Check this in devtools Check this in devtools Again great for attribute values and parameters, but still need another step to get the result into a filter. Tony Tones On Thursday,

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread TonyM
Saq et al, Thinking a little further on this issue of "inline concatenation of various tiddlywiki values", I believe I have just found a quite elegant solution. Given your complaint about Wikification performance this returns the "evaluated text" Create a tiddler called "&" for concatenate

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread saq.i...@gmail.com
@codacoder There are issues on github discussing both approaches, using backticks to wikify OR using them to do substitution. I strongly prefer the latter due to the performance penalty associated with wikify. See - https://github.com/Jermolene/TiddlyWiki5/issues/5121 -

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread coda coder
Just dreaming out loud... my span Note - *backticks*. They become a request for wikification. Of course, they could be any sensible alternative (though I don't support treading on/overloading quotes, either ' or " . And if a substitution run could happen *first*... >:{{!!field}}`>my span

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread coda coder
Yep, it is interesting. I do try to avoid wikify until I prove it's the only way. In essence, even though the goal is simply stated, transclusion-filters (to me) seem to cloud the simplicity - leaving a lot of syntax noise behind. Wikify seems to read simpler, because it's "broken down" I

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread saq.i...@gmail.com
@codacoder interesting! While both syntaxes leave a lot to be desired, I personally find wikify so much uglier. Personally I use a filter that does something like this: Check this in devtools Anyway be warned that depending on the complexity of the contents of the element you assign a

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread coda coder
On Wednesday, December 2, 2020 at 12:40:17 AM UTC-6 saq wrote: > FYI, the solution using join[] (or addsuffix[]) is *substantially* > faster... addsuffix - duh! - Jeez... thanks for the face-palm, Saq! There's only so long I can stare at something (sometimes, anyway). -- You received this

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread coda coder
Yes. But following along with your thinking was kinda slow. I had to reread a few times to "get" what you were saying. It was probably me - too tired at the time. On Tuesday, December 1, 2020 at 11:11:15 PM UTC-6 TonyM wrote: > CodaCoda, > > Yes I understand that, but I will review the cheat

[twdev] Re: Peer Review please Cheat sheet

2020-12-02 Thread coda coder
Agreed. But syntax noise is... well, noisy :/ On Wednesday, December 2, 2020 at 12:40:17 AM UTC-6 saq.i...@gmail.com wrote: > FYI, the solution using join[] (or addsuffix[]) is *substantially* faster > than using wikify to assign widget attributes. > > You: > > <$wikify name=style-value