How does the performance of the "contains" operator compare?

You could use

{{{ [tag[$:/tags/Macro]contains[myidentifier]get[separator]] }}}

where "separator" and "[[My Macro Tiddler]]" are both in the list field of 
the global macro tiddler.

Then when the user changes the name of the tiddler, assuming they select 
"Update 
*Tiddler X* to *Tiddler Y* in the *tags* and *list* fields of other 
tiddlers" then the macro tiddler will be automatically updated to allow the 
name to be found.

Thanks!
-- Mark

On Friday, March 22, 2019 at 8:34:21 AM UTC-7, Jeremy Ruston wrote:
>
> On Friday, March 22, 2019 at 7:18:14 AM UTC-7, S. S. wrote:
>>
>> Within a tiddler that contains a global macro, I want to be able to 
>> reference a *field* within the tiddler where the macro is defined.
>> If I share the tiddler with the macro and that person renames the 
>> tiddler, the reference breaks. I want to stop this happening.
>>
>
> Try this:
> {{{ [tag[$:/tags/Macro]search[define showSeparatedText]get[separator]] }}}
>
> enjoy,
> -e
>
>
> Cunning! Just to point out that this interesting technique is really too 
> slow for general use because it needs to do a full text search across all 
> tiddlers tagged $:/tags/Macro.
>
> The original question arose because SS was trying to accommodate end users 
> renaming the tiddler containing a global macro. Given the prevalence of 
> named links between tiddlers it is pretty hard to accommodate and so I 
> wouldn't recommend it. (Packaging tiddlers as plugins might remove the 
> temptation for end users to rename them).
>
> Best wishes
>
> Jeremy
>
>
> -- 
> 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] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/2252a4fe-be76-40b3-8b5a-c746c3569140%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/2252a4fe-be76-40b3-8b5a-c746c3569140%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/97c547a0-ac6f-4bc9-b364-626b7707753f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to