[tw] Re: How 'distribute' filter operator on list?
Hi Mat, I do something similar. I use this tiddler (which I call nonTOC) <$list > filter="[!is[system]!tag[TOC]]-[[TOC]tagging[]tagging[]]-[[TOC]tagging[]tagging[]tagging[]]-[[TOC]tagging[]tagging[]tagging[]tagging[]]"> > and transclude it at the bottom of the TOC Tiddler. I just use it to show me which ones are missing from my hierarchy. Regard, Richard On Monday, October 2, 2017 at 11:00:22 PM UTC+11, Mat wrote: > > I have thos ToC, i.e using the root tag "menu" and below it an arbitrary > number of children and grandchildren (i.e two levels below root, but not > more) > > menu > - house > ---House of Lannister > ---House of Stark > - place > ---Winterfell > ---Kings Landing > - ... > > > I want to complete this with a listing (i.e not part of the ToC) for all > things that are NOT tagged "house", "place", "...". > > Naively I attempted this: > > <$set name=listed filter="[tag[menu]]" > > <]">> > > > ...hoping for "!tag" to distribute to all elements in 'listed'. OK, I'm > not surprised it doesn't work, but what should I do? > > Thanks! > > <:-) > > > Background, mostly off-topic: I almost never watch TV and especially avoid > TV-series for fear of getting addicted. My brother insisted I watch GoT > (Game of Thrones) ... and I managed to concoct an excuse for myself that > "GoT is now part of todays common knowledge", much like classical plays > once were. (Actually, most old "classics" are today more of an intellectual > oddity than common knowledge or general knowledge. A left over from a time > when intellectual food was scarce. That is not to say they are bad... but > most would not stand a chance had they been produced today.) Anyway, it > turns out GoT is fantastic - *but* *had it not been for a TiddlyWiki to > note things in*, I would frankly not have been *capable *of following it. > There are more names and places than in the Russian classics and I'd be > lost even a few episodes in. > > > > -- 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/309cc721-fb5a-4526-9c92-124f43834d74%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: How 'distribute' filter operator on list?
maybe like this? \define mylist(x) <> \end <$wikify name="x" text ="""<$list filter="[tag[menu]]">-[tag[<>]]"""> <> <$macrocall $name="mylist" x=<>/> On Monday, October 2, 2017 at 2:00:22 PM UTC+2, Mat wrote: > > I have thos ToC, i.e using the root tag "menu" and below it an arbitrary > number of children and grandchildren (i.e two levels below root, but not > more) > > menu > - house > ---House of Lannister > ---House of Stark > - place > ---Winterfell > ---Kings Landing > - ... > > > I want to complete this with a listing (i.e not part of the ToC) for all > things that are NOT tagged "house", "place", "...". > > Naively I attempted this: > > <$set name=listed filter="[tag[menu]]" > > <]">> > > > ...hoping for "!tag" to distribute to all elements in 'listed'. OK, I'm > not surprised it doesn't work, but what should I do? > > Thanks! > > <:-) > > > Background, mostly off-topic: I almost never watch TV and especially avoid > TV-series for fear of getting addicted. My brother insisted I watch GoT > (Game of Thrones) ... and I managed to concoct an excuse for myself that > "GoT is now part of todays common knowledge", much like classical plays > once were. (Actually, most old "classics" are today more of an intellectual > oddity than common knowledge or general knowledge. A left over from a time > when intellectual food was scarce. That is not to say they are bad... but > most would not stand a chance had they been produced today.) Anyway, it > turns out GoT is fantastic - *but* *had it not been for a TiddlyWiki to > note things in*, I would frankly not have been *capable *of following it. > There are more names and places than in the Russian classics and I'd be > lost even a few episodes in. > > > > -- 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/97a4e5e2-bfff-47e0-aec1-80ce914e45ac%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: How 'distribute' filter operator on list?
PMario - appreciated, but without having looked yet at your solution I kind of doubt it will solve my question above since the general point of my question is about filters or filter operators rather than about ToC's. That said, I do think there is much room for improvement on ToC and actually created a thing over these past weeks (for an enhancement to the Batch Manipulator) that I might present at some later point. Who knows, maybe your solution solves a problem I have with my variant. <:-) -- 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/9e066e01-493c-428b-a37b-cd4dd4c499ec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: How 'distribute' filter operator on list?
On Monday, October 2, 2017 at 3:02:23 PM UTC+2, Jed Carty wrote: > > I have run into this problem myself a few times and never came up with a > satisfactory answer. > Hm, that's surprising to hear. > The closest I came up with was to define, using $set with a filter, the > parts that you want to remove and then just subtracting them. I haven't > come up with a way to make this work well. > But that is what my failed attempt tried. How would you do it with the above case? @everyone: Would it make sense to make a github request for this (let a lone a PR of course). It occurs to me that a times character (*) would make syntactic sense for distribution: "[op*[a b c]]" = "[op[a]] [op[b]] [op[c]]" <:-) -- 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/3babee66-84cc-4b0e-a3fa-c5ec0d236bcf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: How 'distribute' filter operator on list?
On Monday, October 2, 2017 at 2:00:22 PM UTC+2, Mat wrote: > > I have thos ToC, i.e using the root tag "menu" and below it an arbitrary > number of children and grandchildren (i.e two levels below root, but not > more) > > menu > - house > ---House of Lannister > ---House of Stark > - place > ---Winterfell > ---Kings Landing > - ... > > > I want to complete this with a listing (i.e not part of the ToC) for all > things that are NOT tagged "house", "place", "...". > Hi Mat, Have a look here: https://groups.google.com/forum/#!searchin/tiddlywiki/toc$20merge|sort:relevance/tiddlywiki/55zEWhzGF3c/KJsQUnFgCgAJ I did an experimental bundle. Download it from the link. Since it "hardcore" overwrites the core TOC macros and not everything works, as I'd like it, I didn't create a plugin. Feedback would be very welcome. .. Is it worth to create a tocM plugin, out of this experiement? have fun! mario -- 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/a042ae64-6b3d-4ed7-b769-871bf3b3e8f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: How 'distribute' filter operator on list?
I have run into this problem myself a few times and never came up with a satisfactory answer. The closest I came up with was to define, using $set with a filter, the parts that you want to remove and then just subtracting them. I haven't come up with a way to make this work well. -- 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/71e19e48-effe-4130-abed-5de1e563a1d3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.