[tw] Re: [TW5] Autocollaps TOC categories

2015-03-05 Thread Tobias Beer
Hi magev958,
 

 A follow-up question. TOC get sorted by the title but I would like to 
 sort it by caption . Where do I put that in the code?


If I interpret the code right, the second parameter of the macro seems to 
cater for a sort filter component like so...

toc-selective-single-expandable TableOfContents sort[caption]

You could sort by title first and then caption, in case there was no 
caption...

toc-selective-single-expandable TableOfContents 
sort[title]sort[caption]

Best wishes, Tobias.

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Autocollaps TOC categories

2015-03-05 Thread magev958
A follow-up question. TOC get sorted by the title but I would like to 
sort it by caption . Where do I put that in the code?
 

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Autocollaps TOC categories

2015-03-05 Thread Andreas Hahn

Am 05.03.2015 um 12:45 schrieb Tobias Beer:
You could sort by title first and then caption, in case there was no 
caption...


Am I wrong, or does this at most result in the tiddlers with an empty 
caption being sorted alphabetically by title ? And even that might not 
be guaranteed by the TW sort algorithm.
So what would be the advantage to sort it by title first ? (It does not 
produce a perfectly sorted output, does it ?)


/Andreas

--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Autocollaps TOC categories

2015-03-05 Thread magev958
It's so simple that I should have figured it out myself :)

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Autocollaps TOC categories

2015-03-05 Thread Tobias Beer


 Am I wrong, or does this at most result in the tiddlers with an empty 
 caption being sorted alphabetically by title ? And even that might not be 
 guaranteed by the TW sort algorithm. So what would be the advantage to sort 
 it by title first ? (It does not produce a perfectly sorted output, does it 
 ?)


Tbh, I just assumed it would do what it says... as I'm sure that not all 
tiddler's have a caption. At second thought, you're right... what's the 
point of sorting by title if we have the default sorting algorithm from the 
tagging / list order. So, perhaps forget the title part. I guess, if we 
wanted it properly we'd also want to first sort by caption and then have 
the list-field order applied. Looks like  that's not an option, though.

Best wishes, Tobias.

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Autocollaps TOC categories

2015-03-03 Thread magev958
Thank You, it works like a charm :)

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.