Luke, As I understand it when a link is inside a define it becomes a macro and thus is not considered a link, the macro is "interpreted" then rendered and the result could be anything. I think this is why, perhaps by design, such links do not appear. Macros are also often defined elsewhere and tagged $:/tags/Macro, and perhaps you do not want those tiddlers listed.
However if you tag a tiddler containing the following with $:/ tags/ViewTemplate <$list filter="[all[current]list[text]]"> </$list> You will see the reference is detected, only if the macro is actually used. Of course we can also write a solution that searches all tiddlers and and finds in the string is in the text (including in a macro definition) <$list filter="[all[tiddlers]contains:text[HelloThere]]"> </$list> The advantage being it finds items with or without the Square braces, eg camel case But may bring up other hits? However if you use a carefully crafted a search you can always find all such links in or outside the define statements, after all all you want is to list tiddlers containing "[[searchvalue]]" There are tricks available to concatenate a search string with characters that are illegal in filters or wikitext. Regards Tony On Monday, 14 September 2020 06:15:30 UTC+10, Huntsfromshadow wrote: > > Question about Reference List and Macros. > > I have the following Setup. > > 1 - Tiddler 1 that has some random Text. > 2 - Tiddler 2 that has [[Tiddler 1]] in it. > > Tiddler 1 shows that Tiddler 2 refrences it (and thus isn't on the Orphan > list). > > If I replace the text in Tiddler 2 with > \define testme() > [[Tiddler 1]] > \end > > <<testme>> > > Tiddler 1 doesn't show any refrences to it (and thus is in the Orphan > List). > > > Is this expected? Anyway to have the macro still report as a refrence? > > Thanks > -Luke > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/08f07463-a6ed-4b91-8b58-8e4175707ccfo%40googlegroups.com.