[tw5] Re: How to build a "dynamic" list ?

2020-06-05 Thread Eric Shulman
On Friday, June 5, 2020 at 3:07:11 AM UTC-7, TonyM wrote:

SAq's suggestion is applying the reqexp to the titles,  that is not what 
> you want is it, your pattern is running against the text field.


Saq's second suggestion was:
[tag[DailyNotes]regexp:text[$pattern$\b(?)i]
which *does* apply the regexp to the text field while still yielding the 
list of matching tiddler titles.
Thus, the above filter would return a list of titles whose text contains 
the desired text pattern.

Although TonyK's goal wasn't explicitly stated,  I suspect that the above 
result is what he wants (i.e., find all DailyNotes that match the pattern 
in their content)

Also, to get the results in a variable, he can use the $set widget, like 
this:
<$set name="mylist" filter="[tag[DailyNotes]regexp:text[$pattern$\b(?)i]]">

Note that this is one of the specific cases in which the $set widget does 
something that the $vars widget cannot.  For example, if he were to use an 
"inline filter" like this:
<$vars mylist={{{ [tag[DailyNotes]regexp:text[$pattern$\b(?)i]] }}}>
then the "mylist" variable would only capture the *first* matching item 
from the filter.
In contrast, the $set usage captures *all* matching items into the variable.

enjoy,
-e



>1. Can you explain why, you are *looking to do is having one list in a 
>variable with all the results of the second filter* the reason I ask 
>is perhaps there is a way to solve the bigger problem.
>
>
> I hope I have not appeared to harsh in the past. It takes time to  promote 
> better use of the forums,
> the clearer a post is the more we can share; without consuming too much of 
> our own time.
>
> By the way I appreciate your contributions too.
>
> Thanks
> Tony
>
> On Friday, June 5, 2020 at 7:34:59 PM UTC+10, Tony K wrote:
>>
>> no specific reason at all, i just don't know better
>>
>> will give it a try thanks a bunch 
>>
>> On Friday, June 5, 2020 at 12:33:25 PM UTC+3, Saq Imtiaz wrote:
>>>
>>> Is there a specific reason why you need nested lists? Do you want the 
>>> tiddler titles or the text that matches the regexp?
>>>
>>> [tag[DailyNotes]regexp[$pattern$\b(?i)]
>>>
>>> or
>>>
>>> [tag[DailyNotes]regexp:text[$pattern$\b(?)i]
>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/786c3b10-c06c-435c-8d27-c98999a0dbbco%40googlegroups.com.


[tw5] Re: How to build a "dynamic" list ?

2020-06-05 Thread TonyM
Tony, You did Well, Tony.


   1. It sounds to me like the pattern will remain the same for all items 
   in your final list but you want to access the tiddler name as well in the 
   result.
   2. If you use "get" the value ends up being the title coming out of the 
   list.
   3. SAq's suggestion is applying the reqexp to the titles,  that is not 
   what you want is it, your pattern is running against the text field.
   4. Can you explain why, you are *looking to do is having one list in a 
   variable with all the results of the second filter* the reason I ask is 
   perhaps there is a way to solve the bigger problem.


I hope I have not appeared to harsh in the past. It takes time to  promote 
better use of the forums,
the clearer a post is the more we can share; without consuming too much of 
our own time.

By the way I appreciate your contributions too.

Thanks
Tony

On Friday, June 5, 2020 at 7:34:59 PM UTC+10, Tony K wrote:
>
> no specific reason at all, i just don't know better
>
> will give it a try thanks a bunch 
>
> On Friday, June 5, 2020 at 12:33:25 PM UTC+3, Saq Imtiaz wrote:
>>
>> Is there a specific reason why you need nested lists? Do you want the 
>> tiddler titles or the text that matches the regexp?
>>
>> [tag[DailyNotes]regexp[$pattern$\b(?i)]
>>
>> or
>>
>> [tag[DailyNotes]regexp:text[$pattern$\b(?)i]
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/67c33a8e-ebf5-4931-af32-c0ce5ad3fdb8o%40googlegroups.com.


[tw5] Re: How to build a "dynamic" list ?

2020-06-05 Thread Tony K
no specific reason at all, i just don't know better

will give it a try thanks a bunch 

On Friday, June 5, 2020 at 12:33:25 PM UTC+3, Saq Imtiaz wrote:
>
> Is there a specific reason why you need nested lists? Do you want the 
> tiddler titles or the text that matches the regexp?
>
> [tag[DailyNotes]regexp[$pattern$\b(?i)]
>
> or
>
> [tag[DailyNotes]regexp:text[$pattern$\b(?)i]
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/333ee271-2847-4b96-bbaa-7b3614fab629o%40googlegroups.com.


[tw5] Re: How to build a "dynamic" list ?

2020-06-05 Thread Saq Imtiaz
Is there a specific reason why you need nested lists? Do you want the 
tiddler titles or the text that matches the regexp?

[tag[DailyNotes]regexp[$pattern$\b(?i)]

or

[tag[DailyNotes]regexp:text[$pattern$\b(?)i]

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6fe06f9f-3b34-43bf-bd4b-77fcc644c1f7o%40googlegroups.com.