Thank you for your exhaustive explanation Tony. I admit, this will take 
some time to ingest.

Regards,
Hubert

On Wednesday, 16 October 2019 00:45:59 UTC+1, TonyM wrote:
>
> Hubert,
>
> Such tiddlers are typically generated using the qualify widget. It makes 
> use of the currentTiddler to generate a hashed number with an optional 
> prefix. Using Qualify in the same tiddler with the same title will always 
> return the same number so it is great for temporary or  switch type 
> tiddlers relating to a specific tiddler.
>
> Here is an example of my "hunt and peck" strategy to learn what is going 
> on.
>
> To generate 
> $:/state/tab/sidebar--1835078512 we would expect somewhere the code
> <<qualify $:/state/tab/sidebar>>
>
>
>    - *If you look at items tagged $:/tags/PageTemplate you discover *
>    - *$:/core/ui/PageTemplate/sidebar If you look inside you 
>    see $:/tags/SideBarSegment is used to display the side bar*
>    - *If you look at items tagged $:/tags/SideBarSegment  you 
>    see  $:/core/ui/SideBarSegments/tabs*
>    - *if you look inside $:/core/ui/SideBarSegments/tabs you see it uses 
>    the tabs macro and the state= parameter*
>
> state="$:/state/tab/sidebar"
>
>
>
>
>    - This is the prefix of $:/state/tab/sidebar--1835078512.
>    - I happen to know most core macros can be found in the shadow tiddlers
>    .
>    
>
> Then looking at $:/core/macros/tabs we see it is in fact using Qualify 
> <<qualify "$state$">>
>
> So this depends on the currentTiddler in which it is defined.
>
> Note: Unless inside a list that causes a change in currentTiddler, tabs in 
> the sidebar do not have a currentTiddler value but there is a currentTab 
> variable.
>
> Regards
> Tony
>
> On Wednesday, October 16, 2019 at 2:21:58 AM UTC+11, Hubert wrote:
>>
>> The default setting does explain why we had more state numbers...setting 
>>> the default first before choosing and saving anything else gives us the 
>>> $:/state/tab/sidebar--1835078512.
>>>
>>
>> Does anyone know what that number means, whether it's random and whether 
>> it could be customised for consistency?
>>
>> Apologies if that was already explained above; I couldn't conclude 
>> whether an agreement on what this means has already been reached.
>>
>> Regards,
>> Hubert
>>
>> On Wednesday, 9 October 2019 01:41:52 UTC+1, Birthe C wrote:
>>>
>>> The default setting does explain why we had more state numbers...setting 
>>> the default first before choosing and saving anything else gives us the 
>>> $:/state/tab/sidebar--1835078512.
>>>
>>> Birthe
>>>
>>> onsdag den 9. oktober 2019 kl. 01.56.40 UTC+2 skrev Damon Pritchett:
>>>>
>>>> Hey Tony,
>>>>
>>>> Thanks, but I haven't really noticed that does what I want. What I've 
>>>> been experiencing, even with my Contents tab selected as default, is that 
>>>> whatever sidebar tab I had selected when I saved was what was selected 
>>>> when 
>>>> the TW was reopened. Doing as Birth suggested with 
>>>> $:/state/tab/sidebar--595412856, indeed accomplished what I was looking 
>>>> for 
>>>> which was that the Contents tab was always selected when I reopen a TW 
>>>> regardless of what tab was selected when I last saved.
>>>>
>>>> Damon
>>>>
>>>

-- 
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/958bb02e-a375-441b-890f-0b05f9e83227%40googlegroups.com.

Reply via email to