>> 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].
> 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/2252a4fe-be76-40b3-8b5a-c746c3569140%40googlegroups.com.
> 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/F9646009-8B4C-4D0C-9E69-F6A0DC1BBC19%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to