[tw] Re: Nested List Problem

2015-11-19 Thread Jed Carty
I think that Tobias is correct and there isn't currently a way to make the 
result of nested list widgets into a single list in a reasonable way. An 
unreasonable way would be to make a button that adds each list item to a 
tiddler as a tag and then to use the tags from that tiddler as your 
complete list, so if you absolutely need it and you are ok with the extra 
button clicks it is possible.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a558558f-e1e9-40d7-803b-708e6f636d78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread Erwan


Hi Tobias,

I'm not sure but to me this problem looks similar to this one: 
https://groups.google.com/forum/#!msg/tiddlywiki/h0bBO54Qn7g/8xWaAYlXBAAJ, 
for which you proposed this: 
https://github.com/Jermolene/TiddlyWiki5/issues/2078.


Assuming the new operator |some-field:any-listitem| exists, 
isn't it possible to write the condition using a single filter? It would 
be something similar to:


|[tag[star_system]field:quadrant[Alpha 
Quadrant]listed[solar_system]tag[planet]]

|
... except with the new operator that I don't know how to use instead of 
"listed" :-)


Am I completely wrong? (a real possibility here)


Erwan


On 19/11/15 16:08, Tobias Beer wrote:

Hi David,

Actually, I have another question.

How would I compile the results of the internal list into a single
list,

rather than separate lists for every element in the parent list?


I'd be glad to learn I'm wrong, but I don't think that's currently 
possible.


One way to eventually implement this could be to create a new *filter* 
filter

which would run a given filter expression against the input set,
which in your case could look like so:

|
<$set name="planets-in-system" 
value="[tag[planet]field:solar_system]">
{{{ [tag[star_system]field:quadrant[Alpha 
Quadrant]filter:this_system]] }}}


|

So, what would this do?

 1. define a variable called *planets-in-system* specifying a filter
expression using a variable called *this_system*
 2. evaluate this filter expression against the titles fetched as
*star_system* in the *Aplha Quadrant*
  * while replacing the variable *this_system* with each item in
this input set

This would allow to combine a number of filter expressions into one 
big sophisticated filter.


I have left the above proposal at an appropriate issue on GitHub:

*#2033 complex conditions ...how?*
issuecomment-158101715 



Best wishes,

— tb
--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2d1e4ce3-da6a-4191-9784-f896ebe17a98%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/564E161D.3030709%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread David Allen
Wait, now I've got another problem.

The star system tiddlers have name such as Sol System or Qo'noS System,
where there is a space in the name.  To make the earlier stuff work, I had
to change the solar_system field in the various planets to a
double-bracketed form of the same value ( [[Sol System]] rather than Sol
System ).  While this works for what I was doing, it presents a new problem.

In each star system tiddler, I have a list of planets that belong to that
system.  I'm having trouble with both passing the title of the tiddler in
double brackets into the filter operator (something like
filter:"[tag[planet]solar_system[{{tiddler.title}}]]" and manually entering
the tiddler tile into the operator.  Does anyone know if I'm supposed to do
something different than [{{tiddler.title}}]?

On Thu, Nov 19, 2015 at 2:59 PM, David Allen 
wrote:

> Got it to work!
>
> < Quadrant]listed[solar_system]listed[planet]]">>
>
> This gives me all of the species located in the Alpha Quadrant.  Thanks
> for posting the link that had the listed[] operator in it so I could learn
> how it works!
>
> On Thu, Nov 19, 2015 at 2:19 PM, Tobias Beer  wrote:
>
>> Hi Erwan,
>>
>>
>>> I'm not sure but to me this problem looks similar to this one:
>>> https://groups.google.com/forum/#!msg/tiddlywiki/h0bBO54Qn7g/8xWaAYlXBAAJ,
>>> for which you proposed this:
>>> https://github.com/Jermolene/TiddlyWiki5/issues/2078.
>>>
>>> Assuming the new operator some-field:any-listitem exists,
>>> isn't it possible to write the condition using a single filter?
>>>
>>
>> In this case you are right. However, it approaches the problem the other
>> way around, e.g.:
>>
>> <$set name="systems-in-alpha"
>> filter="[tag[star_system]field:quadrant[Alpha Quadrant]">
>> {{{ [tag[planet]solar_system:any] }}}
>> 
>>
>> So much for many roads leading to Rome. ;-)
>>
>> Best wishes,
>>
>> — tb
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/ZijquE6uDUE/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/4f32e8f6-b429-4a14-9777-55ba2daf4997%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLiUpVtsVp3F%2BxhH1L491RRZ%3DthbaYw2Ugu3vgrC3uXsuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread Tobias Beer
Hi Erwan,
 

> I'm not sure but to me this problem looks similar to this one: 
> https://groups.google.com/forum/#!msg/tiddlywiki/h0bBO54Qn7g/8xWaAYlXBAAJ, 
> for which you proposed this: 
> https://github.com/Jermolene/TiddlyWiki5/issues/2078.
>
> Assuming the new operator some-field:any-listitem exists, 
> isn't it possible to write the condition using a single filter?
>

In this case you are right. However, it approaches the problem the other 
way around, e.g.:

<$set name="systems-in-alpha" filter="[tag[star_system]field:quadrant[Alpha 
Quadrant]">
{{{ [tag[planet]solar_system:any] }}}


So much for many roads leading to Rome. ;-)

Best wishes,

— tb

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4f32e8f6-b429-4a14-9777-55ba2daf4997%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread David Allen
Got it to work!

<>

This gives me all of the species located in the Alpha Quadrant.  Thanks for
posting the link that had the listed[] operator in it so I could learn how
it works!

On Thu, Nov 19, 2015 at 2:19 PM, Tobias Beer  wrote:

> Hi Erwan,
>
>
>> I'm not sure but to me this problem looks similar to this one:
>> https://groups.google.com/forum/#!msg/tiddlywiki/h0bBO54Qn7g/8xWaAYlXBAAJ,
>> for which you proposed this:
>> https://github.com/Jermolene/TiddlyWiki5/issues/2078.
>>
>> Assuming the new operator some-field:any-listitem exists,
>> isn't it possible to write the condition using a single filter?
>>
>
> In this case you are right. However, it approaches the problem the other
> way around, e.g.:
>
> <$set name="systems-in-alpha"
> filter="[tag[star_system]field:quadrant[Alpha Quadrant]">
> {{{ [tag[planet]solar_system:any] }}}
> 
>
> So much for many roads leading to Rome. ;-)
>
> Best wishes,
>
> — tb
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/ZijquE6uDUE/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/4f32e8f6-b429-4a14-9777-55ba2daf4997%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLhjxGRtqSLC3oheNp%2BdWjkOyFi6H3jKyECyXsdZ8gEq3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Nested List Problem

2015-11-19 Thread Jed Carty
I am not sure what you are asking. If you have the names like [[Tiddler 
Title]] in the fields and don't want to go through removing the [[ and ]] 
then you would need to use the set widget and macro thing 
.
 
If you just need a transclusion in a filter than you use single curly 
braces like this: [tag{!!title}] or [tag{Some Tiddler!!some_field}]

Hopefully one of those covers what you need. I think that someone else 
wrote up another explanation of how to use set widgets and macros work with 
more examples, but I can't remember where.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/65351fd6-c0b7-41bf-9fca-fe504fc0b2c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread Tobias Beer
Hi David,
 

> Got it to work!
>

Great stuff! 
 

> < Quadrant]listed[solar_system]listed[planet]]">>
>
> This gives me all of the species located in the Alpha Quadrant.  Thanks 
> for posting the link that had the listed[] operator in it so I could learn 
> how it works!
>

This filter should probably be given the Filter Of The Month trophy. :D

Best wishes,

— tb

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0e8107fd-aac1-4b54-999d-18f122c3927c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread David Allen
I don't know how well I explained what I was trying to do.

I want to display a list of tiddlers whose solar_system field matches a
given input. The entries in the solar_system field all have spaces. I had
this working fine by passing in a solar system name with quotes around it,
such as "Qo'noS System".  Now, however, the solar_system field values also
have double-brackets around them, so what used to be Qo'noS System is now
[[Qo'noS System]].  I'm not sure what I should use instead of "Qo'noS
System" because it no longer works with the changed field values.  Does
anyone know what I should use instead?

On Thu, Nov 19, 2015 at 4:15 PM, Tobias Beer  wrote:

> Hi David,
>
>
>> Got it to work!
>>
>
> Great stuff!
>
>
>> <> Quadrant]listed[solar_system]listed[planet]]">>
>>
>> This gives me all of the species located in the Alpha Quadrant.  Thanks
>> for posting the link that had the listed[] operator in it so I could learn
>> how it works!
>>
>
> This filter should probably be given the Filter Of The Month trophy. :D
>
> Best wishes,
>
> — tb
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/ZijquE6uDUE/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0e8107fd-aac1-4b54-999d-18f122c3927c%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLjUhb%2BGXXFg-F%3DSkgY4WDaR%2BkMrEHBT16yi8W8CEV_9zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread Tobias Beer
Hi David

something like filter:"[tag[planet]solar_system[{{tiddler.title}}]]" and 
> manually entering the tiddler tile into the operator


What is {{tiddler.title}} ?
How do you mean "manually entering"?
How is the value stored at planets now?

Just to be sure, using a text reference in a filter expression looks like 
this:

   - [tag[planet]solar_system{sometiddler}]
   - [tag[planet]solar_system{sometiddler!!some-field}]
   - [tag[planet]solar_system{sometiddler##some-index}]

And then variables:

   - [tag[planet]solar_system]

Not exactly sure, but your new problem may be related to the one discussed 
at this issue:

*#2035 parameter "format" for set widget*
https://github.com/Jermolene/TiddlyWiki5/pull/2035

And a possible workaround (tbd) summarized here:

*#2057 list accessors for variables and text references*
https://github.com/Jermolene/TiddlyWiki5/issues/2057

Also relevant this, the *some-field:any-listitem* filter variant 
proposed here:

*#2078 field:any*
https://github.com/Jermolene/TiddlyWiki5/issues/2078

Best wishes,

— tb 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/91e26aef-b156-462b-8c09-8e969d00c9a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread David Allen
This worked great, thanks!

On Tue, Nov 17, 2015 at 12:32 AM, Eric Shulman  wrote:

> On Monday, November 16, 2015 at 10:10:14 PM UTC-8, David Allen wrote:
>>
>> <$list filter="[tag[star_system]field:quadrant[Alpha Quadrant]]">
>> <$list filter="[tag[planet]field:solar_system[]]">
>> 
>> 
>>
>> I don't know what to put in the  part of the code.  Does anyone know
>> what I should put here, or a better solution to this problem?  Thanks!
>>
>
> If I understand the problem, you want something that says:
>"for each star_system in the Alpha Quadrant"
> followed by
>"for each planet in a specified solar_system"
>
> then you want to write something like this:
>
> <$list filter="[tag[star_system]field:quadrant[Alpha Quadrant]]"
> variable="this_system">
> <$list filter="[tag[planet]field:solar_system]">
>
> In the first $list, we use variable="this_system" to define the place to
> hold the value of each star_system found.  Note that the default variable
> for a $list widget (if none is specified) is "currentTiddler", so you could
> have just used that name.  The alternative name is just to help make things
> more apparent in this example.
>
> In the second $list, we use angle brackets (< and >) instead of square
> brackets.  This indicates that the text inside is a variable name, instead
> of a literal value.  This retrieves the value saved in the first $list
> widget and applies it in the second one.  Q.E.D.
>
> enjoy,
> -e
>
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/ZijquE6uDUE/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/f77ad8d3-2ab2-4c5d-911a-f96556e9e1dc%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLi2KStZfXR_ksLD5PhBaNdNkTR6E4mh-%2BJ9exSbQ3k9Fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread Matabele
Hi

You might find the $action-listops widget useful for this -- this may be 
found here . You should be able to create a 
list using the $filter= attribute, then refine the list with subfilter runs 
using the $subfilter= attribute. 

I have been waiting for users to try this out for solving real usage 
problems and would be interested as to whether this is of any use for this 
particular case.

regards

On Thursday, 19 November 2015 17:40:59 UTC+2, David Allen wrote:

Actually, I have another question.  How would I compile the results of the 
> internal list into a single list, rather than separate lists for every 
> element in the parent list?
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/31e9229d-298e-44ee-9799-fddfde1c803f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread Tobias Beer
Hi Matabele,
 

> You might find the $action-listops widget useful for this -- this may be 
> found here . You should be able to create 
> a list using the $filter= attribute, then refine the list with subfilter 
> runs using the $subfilter= attribute.
>

I don't think this thread is about manipulating list field (yet). It is 
simply about retrieving items matching a more complex filter that we may 
currently not be able to express in one filter expression.

Best wishes,

— tb

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/adee99a4-418c-4652-94e1-0deeb9f1f60d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread David Allen
Actually, I have another question.  How would I compile the results of the
internal list into a single list, rather than separate lists for every
element in the parent list?

On Thu, Nov 19, 2015 at 9:26 AM, David Allen 
wrote:

> This worked great, thanks!
>
> On Tue, Nov 17, 2015 at 12:32 AM, Eric Shulman 
> wrote:
>
>> On Monday, November 16, 2015 at 10:10:14 PM UTC-8, David Allen wrote:
>>>
>>> <$list filter="[tag[star_system]field:quadrant[Alpha Quadrant]]">
>>> <$list filter="[tag[planet]field:solar_system[]]">
>>> 
>>> 
>>>
>>> I don't know what to put in the  part of the code.  Does anyone know
>>> what I should put here, or a better solution to this problem?  Thanks!
>>>
>>
>> If I understand the problem, you want something that says:
>>"for each star_system in the Alpha Quadrant"
>> followed by
>>"for each planet in a specified solar_system"
>>
>> then you want to write something like this:
>>
>> <$list filter="[tag[star_system]field:quadrant[Alpha Quadrant]]"
>> variable="this_system">
>> <$list filter="[tag[planet]field:solar_system]">
>>
>> In the first $list, we use variable="this_system" to define the place to
>> hold the value of each star_system found.  Note that the default variable
>> for a $list widget (if none is specified) is "currentTiddler", so you could
>> have just used that name.  The alternative name is just to help make things
>> more apparent in this example.
>>
>> In the second $list, we use angle brackets (< and >) instead of square
>> brackets.  This indicates that the text inside is a variable name, instead
>> of a literal value.  This retrieves the value saved in the first $list
>> widget and applies it in the second one.  Q.E.D.
>>
>> enjoy,
>> -e
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/ZijquE6uDUE/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/f77ad8d3-2ab2-4c5d-911a-f96556e9e1dc%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLio6h_j1PHns9-vC61KQA44qV-%2B1chSuQvBLY0Vm%3Dj93Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread Tobias Beer
Hi David,

Actually, I have another question. 
>
How would I compile the results of the internal list into a single list, 
>
rather than separate lists for every element in the parent list?
>

I'd be glad to learn I'm wrong, but I don't think that's currently possible.

One way to eventually implement this could be to create a new *filter* 
filter
which would run a given filter expression against the input set,
which in your case could look like so:

<$set name="planets-in-system" value="[tag[planet]field:solar_system
]">
{{{ [tag[star_system]field:quadrant[Alpha Quadrant]filter:this_system
]] }}}


So, what would this do?

   1. define a variable called *planets-in-system* specifying a filter 
   expression using a variable called *this_system*
   2. evaluate this filter expression against the titles fetched as 
   *star_system* in the *Aplha Quadrant*
  - while replacing the variable *this_system* with each item in this 
  input set
  
This would allow to combine a number of filter expressions into one 
big sophisticated filter.

I have left the above proposal at an appropriate issue on GitHub:

*#2033 complex conditions ...how?*
issuecomment-158101715 


Best wishes,

— tb

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2d1e4ce3-da6a-4191-9784-f896ebe17a98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Nested List Problem

2015-11-16 Thread Eric Shulman
On Monday, November 16, 2015 at 10:10:14 PM UTC-8, David Allen wrote:
>
> <$list filter="[tag[star_system]field:quadrant[Alpha Quadrant]]">
> <$list filter="[tag[planet]field:solar_system[]]">
> 
> 
>
> I don't know what to put in the  part of the code.  Does anyone know 
> what I should put here, or a better solution to this problem?  Thanks!
>

If I understand the problem, you want something that says:
   "for each star_system in the Alpha Quadrant" 
followed by
   "for each planet in a specified solar_system"

then you want to write something like this:

<$list filter="[tag[star_system]field:quadrant[Alpha Quadrant]]" 
variable="this_system">
<$list filter="[tag[planet]field:solar_system]">

In the first $list, we use variable="this_system" to define the place to 
hold the value of each star_system found.  Note that the default variable 
for a $list widget (if none is specified) is "currentTiddler", so you could 
have just used that name.  The alternative name is just to help make things 
more apparent in this example.

In the second $list, we use angle brackets (< and >) instead of square 
brackets.  This indicates that the text inside is a variable name, instead 
of a literal value.  This retrieves the value saved in the first $list 
widget and applies it in the second one.  Q.E.D.

enjoy,
-e


 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f77ad8d3-2ab2-4c5d-911a-f96556e9e1dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.