[tw] Re: chagne sroting for child tidders in TOC??

2016-12-15 Thread PMario
On Wednesday, December 14, 2016 at 10:23:29 PM UTC+1, Philippe Le Toquin wrote: > > yes it had got rid of the duplicated entries. > good. .. just be aware, that the toc-expandable doesn't have the changes. -m -- You received this message because you are subscribed to the Google Groups "Tiddly

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-14 Thread Philippe Le Toquin
yes it had got rid of the duplicated entries. Thanks :) On Wednesday, 14 December 2016 14:38:50 UTC, PMario wrote: > > try this one. it only contains the toc macros. > -m > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-14 Thread PMario
try this one. it only contains the toc macros. -m -- 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, s

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-14 Thread PMario
It seems, I did ignore my own spec :) - a .. tagged: root >- aa .. tagged: a >- bb .. tagged: afield:toc-include:toc-2 > - bbb .. tagged bb .. Will not be shown!! toc-include stops the > default behaviour *<--- I knew, there was a reason, why I wrote this* > - x .. tagged: r

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-14 Thread PMario
On Wednesday, December 14, 2016 at 2:39:12 PM UTC+1, Philippe Le Toquin wrote: > > A tiddler called TableOfContents that has the following: > > tags: $:/tages/SideBar > > > <> > > > field : > > > I then tagged accordingly the relevant tidders. Since I want to reorder > the Journal tiddler I d

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-14 Thread Philippe Le Toquin
Thanks PMario I have imported the file and tried to apply it to my test TW. It seems to work mainly but... Here is what I have. A tiddler called TableOfContents

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-13 Thread PMario
On Tuesday, December 13, 2016 at 10:59:09 PM UTC+1, Philippe Le Toquin wrote: > > Probably asking a silly question but as I would really like to test your > macro (on a copy of my project :) ) : How do I import it? > Download the .json file and "drag and drop" import it to a TW. -m -- You re

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-13 Thread Philippe Le Toquin
Probably asking a silly question but as I would really like to test your macro (on a copy of my project :) ) : How do I import it? On Tuesday, 13 December 2016 21:12:44 UTC, PMario wrote: > > Hi folks, > > This post contains an EXPERIMENTAL version of the discussed TOC > extensions. It will

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-13 Thread PMario
Hi folks, This post contains an EXPERIMENTAL version of the discussed TOC extensions. It will replace the default core tiddler: $:/core/macros/toc important tiddlers: - aa and bb ... contain the "merge" field parameter - test-toc ... shows the full toc tree - test-toc-selective-expandable

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-09 Thread 'Mark S.' via TiddlyWiki
In line with the general, "Why isn't this documented?" philosophy, I've submitted a pull request documenting the by-branch sort trick to git-hub. Even though it's not perfect in terms of inverse sorts, its probably worth capturing. -- You received this message because you are subscribed to the

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-09 Thread Jed Carty
I do have a toc widget that I have been using with TWederation that I am hoping to improve for possible inclusion in the core. It lets you give a template to use and hopefully I can make it so you can easily give much more complex behaviour like different templates at different levels and whatn

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-09 Thread Philippe Le Toquin
If I understand you well PMario then it would completely make me happy :) I thought at first it would complicate the TOC but after rereading it would not affect those who just want a simple TOC. another example of the great flexibility of TW5 when you know how to program it! Philippe On Frida

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-09 Thread PMario
On Friday, December 9, 2016 at 11:50:19 AM UTC+1, PMario wrote: > > On Friday, December 9, 2016 at 9:12:39 AM UTC+1, HC Haase wrote: >> >> >> *Maybe that could be implementet in the core PMario??? sould that be a >> github request?* >> > > I did already experiment with a mechanism that reads a fie

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-09 Thread PMario
On Friday, December 9, 2016 at 9:12:39 AM UTC+1, HC Haase wrote: > > > > *Maybe that could be implementet in the core PMario??? sould that be a > github request?* > I did already experiment with a mechanism that reads a field from "branch tags" ... but I stopped as Riz has come up with his id

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-09 Thread HC Haase
*wow this thread sure got going. Thanks every one.* *my use case is exactly the same as *Philippe Le Toquin with the journal sorting. well the fuzzy example solves my problem because the fallback title sorting is what i want for top level. However it could be a nice feature to be able to so

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-08 Thread 'Mark S.' via TiddlyWiki
Hi Riz, I think it *is* sorting by title. When it can't find "fuzzy", then the sort operator collapses to "sort[]", or in this case !sort[]. By default, sort[] sorts by title. The problem is that everything will be sorted either forward or in reverse depending on whether you use the inverse ope

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-08 Thread Rizwan Ishak
This is because of the limitation I mentioned in the previous comment I guess. Because it is not considering sort by title at all . -- 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, s

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-08 Thread 'Mark S.' via TiddlyWiki
You can reproduce Philippe's error easily enough. See attached. If you use an inverse, everything gets inversed. If the macro expected one or more runs, rather than a run sub-set, there might be a way to do it with filter operators. As it is, I think what you would have to do is create your own

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-08 Thread Riz
Sorry Philippe - I was not able to reproduce that error. Can you post an HTML file with just the issue you raised? Funnily enough, When I was trying to reproduce it, I realized the limitation of this method. It is not working as I thought it was. When we give <> , the first criteria -ie, so

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-08 Thread Philippe Le Toquin
I have a small issue with that method. I applied it to my TOC. I have a journal tiddler where I want the item sorted so that the last created appears first in the list. I used that line <> The field fuzzy is in the journal tiddler and contains created. It does work and my items are listed corr

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread PMario
On Wednesday, December 7, 2016 at 6:32:14 PM UTC+1, Riz wrote: > > Instead of sort[title]sort[fuzzy] if we use sort[title]sort*{!!fuzzy}* we > can set the alternative criteria in the branch that requires it. > > eg: > <> > will create a normal TOC sorted by title > Now in a tiddler, say featur

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread 'Mark S.' via TiddlyWiki
That's great! On Wednesday, December 7, 2016 at 11:15:30 AM UTC-8, Riz wrote: > > And then added a fuzzy2 field to >> >> - SecondThreeOne >> - SecondThreeThree >> - SecondThreeTwo

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread Riz
> > And then added a fuzzy2 field to > > - SecondThreeOne > - SecondThreeThree > - SecondThreeTwo > > > with a value of "created". > No - just add the fuzzy2 field to Sec

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread 'Mark S.' via TiddlyWiki
I don't understand. "Features" uses the list-links macro. I also used TiddlyWiki for testing. I used this toc: <> And then added a fuzzy2 field to - SecondThreeOne - SecondThreeThree - SecondThreeTwo

Re: [tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread Rizwan Ishak
I guess it did. I tested on tiddlywiki.com. Under featured, scalability shows up as the first child. On 07-Dec-2016 11:44 PM, "'Mark S.' via TiddlyWiki" < tiddlywiki@googlegroups.com> wrote: > Hi Riz, > > When I test this, it seems to always sort by title. Did it work on yours? > > Have fun, > Ma

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread 'Mark S.' via TiddlyWiki
Hi Riz, When I test this, it seems to always sort by title. Did it work on yours? Have fun, Mark On Wednesday, December 7, 2016 at 9:32:14 AM UTC-8, Riz wrote: > > > > Instead of sort[title]sort[fuzzy] if we use sort[title]sort*{!!fuzzy}* we > can set the alternative criteria in the branch that

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread Riz
Instead of sort[title]sort[fuzzy] if we use sort[title]sort*{!!fuzzy}* we can set the alternative criteria in the branch that requires it. eg: <> will create a normal TOC sorted by title Now in a tiddler, say features, we create a field named fuzzy and add the value as "created", children o

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread 'Mark S.' via TiddlyWiki
Idea #2. Create a field called, say, "fuzzy" in just the items you want special sorted and copy the date into it. Then use this sorting parameter: "sort[title]sort[fuzzy]" At least in my test, "sort[title]" will be over-ridden by "sort[fuzzy]" whenever "fuzzy" exists. HTH Mark On Thursday, No

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread 'Mark S.' via TiddlyWiki
You could use the list field of parent "b" to force your sorting on just that level. Of course, you would need to manually update "b" whenever its sub-items changed. Mark On Thursday, November 24, 2016 at 2:32:08 AM UTC-8, HC Haase wrote: > > Hi > I want most of my TOC to be sorted by title and

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread PMario
Hi HC, Which version of the toc macro do you use atm? I was experimenting with a different TOC approach in Aug. 2014. I did a minimal proof of concept but I didn't extend it, since the existing core version is just good enough for me :) The mechanism is based on a "parent" field. So every bran

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread PMario
On Wednesday, December 7, 2016 at 9:26:54 AM UTC+1, HC Haase wrote: > > any suggestions ?? > Hi, IMO with the current TOC macros, that's not possible. There is no generic way to detect which branch should be sorted differently. But you could create a separate TOC with the "special" sorting and

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-07 Thread HC Haase
Den søndag den 4. december 2016 kl. 23.45.54 UTC+1 skrev Andrew Daum: > > yes. keep at it! > any suggestions ?? -- 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 t

[tw] Re: chagne sroting for child tidders in TOC??

2016-12-04 Thread Andrew Daum
yes. keep at it! On Thursday, 24 November 2016 17:32:08 UTC+7, HC Haase wrote: > > Hi > I want most of my TOC to be sorted by title and the child tiddlers under > one toc entry/tiddler to be sorted by created date instead (only for this > one). Is this possible? > > example > > a > aa > ab >