[tw5] Re: [TW5] [Feature request] Intra tiddler Table of contents

2019-04-12 Thread André Carvalho
Thanks for the ideas.
André

On Friday, April 12, 2019 at 8:36:32 AM UTC+1, S. S. wrote:
>
>
> I wonder if, once the Widget Subclassing Mechanism 
>  is 
> introduced, perhaps in the next version (5.1.20) - it will be possible to 
> rewrite the appropriate widget for wikitext parsing for headings to add in 
> a unique id attribute for each header, so that something like:
>
> !.#ToC My New First Header
>
> produces HTML similar to:
>
>  #SomeUniqueText/Number-BasedOnThe-QualifyMacro+NumberIncrementedForEachHeader
> > My New First Header
>
> which could then be used to create a localised tiddler's Table of Contents 
>
> Of course this is nonsense - but the bright minds here may begin to be 
> inspired to think about how it can be done.
>
> Cheers!
>
> On Friday, April 12, 2019 at 12:30:35 AM UTC+7, Mark S. wrote:
>>
>> Probably the official way you'd do this is to have a tiddler that lists 
>> your tiddlers. That becomes your TOC. Have a button that opens all the 
>> tiddlers in your story. Use a templates and styles to hide the divisions 
>> between tiddlers. Now it will look like a single page with a TOC, and you 
>> can navigate to "sections",  but behind the scenes it's using tiddlers. I'm 
>> sure this has been done somewhere already.
>>
>> You could also look at this post 
>> https://groups.google.com/forum/#!msg/tiddlywiki/ikjxwjllFtE/CYlY6UwrAQAJ 
>> that shows a method to allow you to have anchors in tiddlers again. But I 
>> think you would have to hand-make the TOC.
>>
>> Good luck!
>>
>>
>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/4eca8d20-a7ba-4a70-8335-3be694feeab2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] [Feature request] Intra tiddler Table of contents

2019-04-12 Thread André Carvalho
Thanks Tony.
I don't mind to wait ;) As I said I'm really not a Javascript programmer 
but I do admire You guys.

André

On Thursday, April 11, 2019 at 11:04:10 PM UTC+1, TonyM wrote:
>
> Andre
>
> As dave and mark have said I am confident a toc to anchors can be done 
> since the workaround became available and people have seperatly generated 
> lists from content. 
>
> A posible approach is to create a macro you pass a filter to that lists a 
> set of tiddlers inside another tiddler generating both the toc and the 
> anchors to each heading. This could be extended to have additional features.
>
> Until 5.1.20 you could count the number of tiddlers you need headings for, 
> then provide this as the top number in the range operator, to increment the 
> id you generate on the fly. Use qualify to make your anchor ids unique to 
> this listing.
>
> List this range once to create the links or toc and a second time to 
> generate tge anchors and tranclude the tiddler content.
>
> I would build this but Im on the road for a few days (to Hill End NSW)
>
> regards
> tony
>
> Regards
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/1ceee99d-61f8-47fd-850a-1ae235f51d7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] [Feature request] Intra tiddler Table of contents

2019-04-12 Thread André Carvalho
Yes David, that's exactly what I have in mind. Thanks.
André 

On Thursday, April 11, 2019 at 6:48:01 PM UTC+1, David Gifford wrote:
>
> From the example André gave I think he is saying he would like a plugin 
> that grabs the headers (!) (!!) etc, in a tiddler and creates a toc from 
> them.
>
> With the recent workaround for section ID's (
> https://groups.google.com/forum/#!searchin/tiddlywiki/anchor%7Csort:date/tiddlywiki/ikjxwjllFtE/wIfyXCCsCQAJ),
>  
> would this now be possible to create?
>
> Dave
>
> On Thursday, April 11, 2019 at 12:30:35 PM UTC-5, Mark S. wrote:
>>
>> Probably the official way you'd do this is to have a tiddler that lists 
>> your tiddlers. That becomes your TOC. Have a button that opens all the 
>> tiddlers in your story. Use a templates and styles to hide the divisions 
>> between tiddlers. Now it will look like a single page with a TOC, and you 
>> can navigate to "sections",  but behind the scenes it's using tiddlers. I'm 
>> sure this has been done somewhere already.
>>
>> You could also look at this post 
>> https://groups.google.com/forum/#!msg/tiddlywiki/ikjxwjllFtE/CYlY6UwrAQAJ 
>> that shows a method to allow you to have anchors in tiddlers again. But I 
>> think you would have to hand-make the TOC.
>>
>> Good luck!
>>
>> On Thursday, April 11, 2019 at 8:44:35 AM UTC-7, André Carvalho wrote:
>>>
>>> Hi all
>>>
>>> I used a TiddlerToCPlugin 
>>>  in Classic 
>>> TiddlyWiki that was perfect ( See example at 
>>> http://acarvalho.tiddlyspot.com/#%5B%5BWriting%20Good%20Requirements%5D%5D 
>>> ). And can not find anything similar for 5. 
>>>
>>> I'm not a Javascript programmer but I do not see any architectural 
>>> obstacle to do an intra-tiddler TOC and it is a feature that is essential 
>>> for my way of using TiddlyWiki so I would be thankful to anyone that point 
>>> me to some sort of solution. 
>>>
>>> Please keep the "*tiddler philosophy*" off the discussion, TiddlyWiki 
>>> is a tool, an amazing one, and I'll use it as I can and want.
>>> I think that we lost a lot (and gained another lot) on the breaking 
>>> upgrade from Classic and I do not see TW 5 plugins gaining *momentum* 
>>> to get even close to what we had in Classic. That's unfortunate because 
>>> TiddlyWiki is such an amazing tool that can be used in so much different 
>>> ways. In my humble view part of the problem may be the excessive use of the 
>>> "*tiddler philosophy*" answer... if it is architecturally possible, 
>>> please, just consider it (or ignore it if you want) and let each user 
>>> decide how they want to use our beloved TiddlyWiki.
>>>
>>> Best regards
>>> André
>>>
>>>
>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/91f233f1-5d43-4730-930e-26a79035783a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] [Feature request] Intra tiddler Table of contents

2019-04-12 Thread S. S.

I wonder if, once the Widget Subclassing Mechanism 
 is 
introduced, perhaps in the next version (5.1.20) - it will be possible to 
rewrite the appropriate widget for wikitext parsing for headings to add in 
a unique id attribute for each header, so that something like:

!.#ToC My New First Header

produces HTML similar to:

 My New First Header

which could then be used to create a localised tiddler's Table of Contents 

Of course this is nonsense - but the bright minds here may begin to be 
inspired to think about how it can be done.

Cheers!

On Friday, April 12, 2019 at 12:30:35 AM UTC+7, Mark S. wrote:
>
> Probably the official way you'd do this is to have a tiddler that lists 
> your tiddlers. That becomes your TOC. Have a button that opens all the 
> tiddlers in your story. Use a templates and styles to hide the divisions 
> between tiddlers. Now it will look like a single page with a TOC, and you 
> can navigate to "sections",  but behind the scenes it's using tiddlers. I'm 
> sure this has been done somewhere already.
>
> You could also look at this post 
> https://groups.google.com/forum/#!msg/tiddlywiki/ikjxwjllFtE/CYlY6UwrAQAJ 
> that shows a method to allow you to have anchors in tiddlers again. But I 
> think you would have to hand-make the TOC.
>
> Good luck!
>
>
>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/c1dc3622-ed59-45fb-8562-a4391e41bcab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] [Feature request] Intra tiddler Table of contents

2019-04-11 Thread 'Mark S.' via TiddlyWiki
With a regular expression extractor (PR #2963) I can imagine a TOC being 
generated (though the order would probably have to be set by the id #s).

-- Mark

On Thursday, April 11, 2019 at 10:48:01 AM UTC-7, David Gifford wrote:
>
> From the example André gave I think he is saying he would like a plugin 
> that grabs the headers (!) (!!) etc, in a tiddler and creates a toc from 
> them.
>
> With the recent workaround for section ID's (
> https://groups.google.com/forum/#!searchin/tiddlywiki/anchor%7Csort:date/tiddlywiki/ikjxwjllFtE/wIfyXCCsCQAJ),
>  
> would this now be possible to create?
>
> Dave
>
> On Thursday, April 11, 2019 at 12:30:35 PM UTC-5, Mark S. wrote:
>>
>> Probably the official way you'd do this is to have a tiddler that lists 
>> your tiddlers. That becomes your TOC. Have a button that opens all the 
>> tiddlers in your story. Use a templates and styles to hide the divisions 
>> between tiddlers. Now it will look like a single page with a TOC, and you 
>> can navigate to "sections",  but behind the scenes it's using tiddlers. I'm 
>> sure this has been done somewhere already.
>>
>> You could also look at this post 
>> https://groups.google.com/forum/#!msg/tiddlywiki/ikjxwjllFtE/CYlY6UwrAQAJ 
>> that shows a method to allow you to have anchors in tiddlers again. But I 
>> think you would have to hand-make the TOC.
>>
>> Good luck!
>>
>> On Thursday, April 11, 2019 at 8:44:35 AM UTC-7, André Carvalho wrote:
>>>
>>> Hi all
>>>
>>> I used a TiddlerToCPlugin 
>>>  in Classic 
>>> TiddlyWiki that was perfect ( See example at 
>>> http://acarvalho.tiddlyspot.com/#%5B%5BWriting%20Good%20Requirements%5D%5D 
>>> ). And can not find anything similar for 5. 
>>>
>>> I'm not a Javascript programmer but I do not see any architectural 
>>> obstacle to do an intra-tiddler TOC and it is a feature that is essential 
>>> for my way of using TiddlyWiki so I would be thankful to anyone that point 
>>> me to some sort of solution. 
>>>
>>> Please keep the "*tiddler philosophy*" off the discussion, TiddlyWiki 
>>> is a tool, an amazing one, and I'll use it as I can and want.
>>> I think that we lost a lot (and gained another lot) on the breaking 
>>> upgrade from Classic and I do not see TW 5 plugins gaining *momentum* 
>>> to get even close to what we had in Classic. That's unfortunate because 
>>> TiddlyWiki is such an amazing tool that can be used in so much different 
>>> ways. In my humble view part of the problem may be the excessive use of the 
>>> "*tiddler philosophy*" answer... if it is architecturally possible, 
>>> please, just consider it (or ignore it if you want) and let each user 
>>> decide how they want to use our beloved TiddlyWiki.
>>>
>>> Best regards
>>> André
>>>
>>>
>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/3fd2f265-a047-4d5b-86f2-a65c6f5e9369%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] [Feature request] Intra tiddler Table of contents

2019-04-11 Thread David Gifford
>From the example André gave I think he is saying he would like a plugin 
that grabs the headers (!) (!!) etc, in a tiddler and creates a toc from 
them.

With the recent workaround for section ID's 
(https://groups.google.com/forum/#!searchin/tiddlywiki/anchor%7Csort:date/tiddlywiki/ikjxwjllFtE/wIfyXCCsCQAJ),
 
would this now be possible to create?

Dave

On Thursday, April 11, 2019 at 12:30:35 PM UTC-5, Mark S. wrote:
>
> Probably the official way you'd do this is to have a tiddler that lists 
> your tiddlers. That becomes your TOC. Have a button that opens all the 
> tiddlers in your story. Use a templates and styles to hide the divisions 
> between tiddlers. Now it will look like a single page with a TOC, and you 
> can navigate to "sections",  but behind the scenes it's using tiddlers. I'm 
> sure this has been done somewhere already.
>
> You could also look at this post 
> https://groups.google.com/forum/#!msg/tiddlywiki/ikjxwjllFtE/CYlY6UwrAQAJ 
> that shows a method to allow you to have anchors in tiddlers again. But I 
> think you would have to hand-make the TOC.
>
> Good luck!
>
> On Thursday, April 11, 2019 at 8:44:35 AM UTC-7, André Carvalho wrote:
>>
>> Hi all
>>
>> I used a TiddlerToCPlugin 
>>  in Classic 
>> TiddlyWiki that was perfect ( See example at 
>> http://acarvalho.tiddlyspot.com/#%5B%5BWriting%20Good%20Requirements%5D%5D 
>> ). And can not find anything similar for 5. 
>>
>> I'm not a Javascript programmer but I do not see any architectural 
>> obstacle to do an intra-tiddler TOC and it is a feature that is essential 
>> for my way of using TiddlyWiki so I would be thankful to anyone that point 
>> me to some sort of solution. 
>>
>> Please keep the "*tiddler philosophy*" off the discussion, TiddlyWiki is 
>> a tool, an amazing one, and I'll use it as I can and want.
>> I think that we lost a lot (and gained another lot) on the breaking 
>> upgrade from Classic and I do not see TW 5 plugins gaining *momentum* to 
>> get even close to what we had in Classic. That's unfortunate because 
>> TiddlyWiki is such an amazing tool that can be used in so much different 
>> ways. In my humble view part of the problem may be the excessive use of the 
>> "*tiddler philosophy*" answer... if it is architecturally possible, 
>> please, just consider it (or ignore it if you want) and let each user 
>> decide how they want to use our beloved TiddlyWiki.
>>
>> Best regards
>> André
>>
>>
>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/39600840-ddfa-4203-8c1b-e970208c2090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] [Feature request] Intra tiddler Table of contents

2019-04-11 Thread 'Mark S.' via TiddlyWiki
Probably the official way you'd do this is to have a tiddler that lists 
your tiddlers. That becomes your TOC. Have a button that opens all the 
tiddlers in your story. Use a templates and styles to hide the divisions 
between tiddlers. Now it will look like a single page with a TOC, and you 
can navigate to "sections",  but behind the scenes it's using tiddlers. I'm 
sure this has been done somewhere already.

You could also look at this post 
https://groups.google.com/forum/#!msg/tiddlywiki/ikjxwjllFtE/CYlY6UwrAQAJ 
that shows a method to allow you to have anchors in tiddlers again. But I 
think you would have to hand-make the TOC.

Good luck!

On Thursday, April 11, 2019 at 8:44:35 AM UTC-7, André Carvalho wrote:
>
> Hi all
>
> I used a TiddlerToCPlugin 
>  in Classic 
> TiddlyWiki that was perfect ( See example at 
> http://acarvalho.tiddlyspot.com/#%5B%5BWriting%20Good%20Requirements%5D%5D 
> ). And can not find anything similar for 5. 
>
> I'm not a Javascript programmer but I do not see any architectural 
> obstacle to do an intra-tiddler TOC and it is a feature that is essential 
> for my way of using TiddlyWiki so I would be thankful to anyone that point 
> me to some sort of solution. 
>
> Please keep the "*tiddler philosophy*" off the discussion, TiddlyWiki is 
> a tool, an amazing one, and I'll use it as I can and want.
> I think that we lost a lot (and gained another lot) on the breaking 
> upgrade from Classic and I do not see TW 5 plugins gaining *momentum* to 
> get even close to what we had in Classic. That's unfortunate because 
> TiddlyWiki is such an amazing tool that can be used in so much different 
> ways. In my humble view part of the problem may be the excessive use of the 
> "*tiddler philosophy*" answer... if it is architecturally possible, 
> please, just consider it (or ignore it if you want) and let each user 
> decide how they want to use our beloved TiddlyWiki.
>
> Best regards
> André
>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/a0637745-59da-40f6-a412-935c3e74a88d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.