Hi Eric,
 Many thanks for clarification and sharing that powerful toc macros!

On Wednesday, January 22, 2020 at 4:08:28 PM UTC+3:30, Eric Shulman wrote:
>
> On Wednesday, January 22, 2020 at 1:32:03 AM UTC-8, Mat wrote:
>>
>> Mohammad wrote:
>>>
>>> Drag and drop in tiddlywiki.com and see how amazingly it works!
>>>
>>
>> Thanks, both of you, for sharing. Please note that recursions can cause 
>> problems also: For example, go to tiddlywiki.com and tag the HelloThere 
>> tiddler with "Examples" (i.e to create a loop because Examples is a 
>> subtiddler to HelloThere). This does *not* cause problems. But if you 
>> add Mohammads creation you get RSOE. I'm not sure how native TW avoids this 
>> but know it was something that was actively dealt with a few years back.
>>
>
> This was one of my earlier TW5 contributions.  The TOC macros use an 
> "exclude" paramter that is dynamically updated as the recursion occurs.  
> Each level of recursion adds the current Tiddler to a list (using syntax 
> -[[tiddlername]]) so that as it dives down into the tree, any tiddler that 
> has already been visited in the current 'branch' is excluded from being 
> visited again.  This prevents infinite loops that eat up all the browser 
> memory and eventually cause a fatal error condition. 
>

So, this is kind of convention! as circular references are organically not 
possible!
That means a grand father of x is the sun of x also!

But as you described, toc macro, if find A in the tree, it will ignore it 
in branches or sub branches

That is why if HelloThere is tagged with Examples, it is not appeared again 
under Examples branch in Table-of-Contents!


 

>
>> A wish: One major lacking feature of current ToC's is drag'n 
>> drop-ability. I.e to rearrange the branches in the tree. This would be the 
>> basis for a super useful outliner: The next step would be a feature to 
>> "open all tiddlers" in a tree or a subbranch. It'd be a very powerful tool 
>> for authoring longer texts.
>>
>
> My custom TOC macros for InsideTiddlyWiki include drag-and-drop handling.  
> To try it, open http://www.TiddlyTools.com/InsideTW and then 'unlock' the 
> document (padlock icon in the upper right toolbar).  Then open the TOC 
> "slidebar" (menu icon in the upper left toolbar).  Then just drag-n-drop 
> items.  It supports "drop before", "drop after" and "drop into" handling 
> based on modifier keys (default=drop before, SHIFT=drop after, CTRL=drop 
> into).  The macro code is here: 
> http://tiddlytools.com/InsideTW/#TiddlyTools%2FTOC%2FMacros.  See also 
> http://tiddlytools.com/InsideTW/#TiddlyTools%2FTOC%2FTemplate and 
> http://tiddlytools.com/InsideTW/#TiddlyTools%2FTOC%2FStylesheet
>
>
> -e
>
>
> -e
>


Cheers
Mohammad 

-- 
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/ae3b2380-a804-4de8-8c96-2bceaf63fcb0%40googlegroups.com.

Reply via email to