And, for anybody interested:

`
<$tidgraph nocollapse start="Main Tiddler" 
mode="get[text]search-replace:g:regexp[\n],[NNNN]split[NNNN]regexp[include]search-replace:g[(include
 
],[]search-replace:g[)],[]search-replace:g[Main Tiddler],[CIRCULAR 
REFERENCE !!!]">
`

On Wednesday, June 8, 2022 at 8:32:36 PM UTC-3 Charlie Veniot wrote:

> *If there is a plugin or a macro that can already do what I'm trying to do 
> here with Tidgraph, please let me know!*
>
> Just recently, I've setup BASIC Anywhere Machine with an include directive.
>
> (i.e. the ability for a BASIC program to transclude BASIC code from 
> another tiddler.)
>
> I've since been thinking about how to set something up to eliminate the 
> possibility of unintentionally transcluding the same tiddler more than once 
> (say two tiddlers being included into my BASIC program each transclude a 
> common tiddler.)
>
> Not a problem that would normally matter in TiddlyWiki (content 
> duplication), but it is the kind of thing that will cause an error in a 
> BASIC program if, say, a same function/subroutine/variable/constant is 
> duplicated.
>
> As I chew on how to automagically eliminate duplicate transclusions, I 
> have at least a prototype of viewing such a problem when one exists.
>
> With Tidgraph, a sample:
> [image: Screenshot 2022-06-08 8.25.58 PM.png]
>
> *Main Tiddler's text body has:*
> (include A)
> (include B)
>
> *Both tiddlers A and B have:*
> (include C)
>
> *Tiddler C has:*
> (include Main Tiddler)
> (include D)
>
> *Tiddler D has:*
> (include A)
>
> In the graph, the red line from tiddler B to C let's me know that C is 
> twice involved in the transclusion tree.  The "CIRCULAR REFERENCE!!!" let's 
> me know that C is transcluding "Main Tiddler".  The red line between D and 
> A (with arrow pointing to A) let's me know that A is twice involved in the 
> transclusion tree (and in this case is a circular reference too).
>
> Again, if anybody knows of another way to get this information (graph or 
> text-only, either are A-1), please let me know!
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c57e26f0-1412-4f0f-8b51-185dafca21e8n%40googlegroups.com.

Reply via email to