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 containing
{{{ [<currentTiddler>split[ ]] +[join[]] }}}
This spits the input by spaces/run and then joins them.
Now to concatenate use;
{{{ filter || & }}
{{{ filter-run filter-run ||&}}
Where filter can access any value available to a filter, use space
separation of runs
{{{ $:/string/ [<var>] / [{!!fieldname}] [[/suffix]] ||&}}}
{{{ $:/string/ [<var>] / [{!!fieldname}] [[/suffix/]] [all[current]] ||&}}}
{{{ $:/system/ [<currentTiddler>] ||&}}
Now I am already taking this code pattern further,
- This allows the concatenation of values passed as a parameter/set of
filters
- but for efficient use I know need to determine the best way to get a
result into a filter. I expect we must use set or vars.
Regards
Tony
On Thursday, 3 December 2020 at 04:28:23 UTC+11 [email protected] wrote:
> @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
> - https://github.com/Jermolene/TiddlyWiki5/issues/5110
>
> But let's not derail Tony's thread by going too far off topic. If we want
> to discuss this further we should start a new thread.
>
> Cheers,
> Saq
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev/e5da025d-4718-4a60-af6c-6f54bad0ed9dn%40googlegroups.com.