Re: [tw5] Reverse getindex?

2018-11-07 Thread Hubert
Mark, thank you!

Your solution is clean and elegant and, most importantly, it works *exactly 
*as expected.
Thanks again for taking the time to help.

Best,
Hubert

On Tuesday, 6 November 2018 18:05:38 UTC, Mark S. wrote:
>
> In the interim, this may be useful:
>
> \define myfilter() [title[data##$(index)$]regexp:title[$(term)$]]
> \define value() {{data##$(index)$}}
>
> <$set name="term" value="duck">
> <$list filter="[title[data]indexes[]]" variable="index">
> <$wikify name="title" text=<>>
> <$list filter="[titleregexp]" >
>
> 
> 
> 
> 
>
> The outer list enumerates the data tiddler. The inner list checks if it 
> contains the term.
>
> -- Mark
>
> On Tuesday, November 6, 2018 at 8:59:48 AM UTC-8, Hubert wrote:
>>
>> Jeremy, thank you so much for taking the time to address my question.
>>
>> Unfortunately, coming up with a solution that could be merged with the 
>> core is going to be beyond the scope of my ability in the foreseeable 
>> future.
>>
>> Best regards,
>> Hubert
>>
>> On Tuesday, 6 November 2018 16:50:06 UTC, Jeremy Ruston wrote:
>>>
>>> Hi Hubert
>>>
>>> On 6 Nov 2018, at 15:05, Hubert  wrote:
>>>
>>> We can get the value of an index in a data dictionary by searching for 
>>> the index using getindex.
>>>
>>> Is there a way to perform a reverse operation that would find index(es) 
>>> that have the specified value?
>>>
>>> The assumption is that all indexes and their values are listed in a 
>>> single data dictionary and not across multiple/individual data dictionaries 
>>> (I know it's possible in the latter scenario).
>>>
>>>
>>> Indeed, I think it would be feasible to make a “searchindexes” filter so 
>>> that [[my data dictionary]searchindexes[foo]] would return the index names 
>>> from the input tiddlers that contain the text foo.
>>>
>>> Best wishes
>>>
>>> Jeremy.
>>>
>>>
>>> Thanks!
>>>
>>>
>>> -- 
>>> 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+...@googlegroups.com.
>>> To post to this group, send email to tiddl...@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/e0a5add7-8141-4de4-a2e9-55e25dce6821%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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/10d6c738-1003-449f-87d1-b30a92a637f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Reverse getindex?

2018-11-06 Thread 'Mark S.' via TiddlyWiki
In the interim, this may be useful:

\define myfilter() [title[data##$(index)$]regexp:title[$(term)$]]
\define value() {{data##$(index)$}}

<$set name="term" value="duck">
<$list filter="[title[data]indexes[]]" variable="index">
<$wikify name="title" text=<>>
<$list filter="[titleregexp]" >






The outer list enumerates the data tiddler. The inner list checks if it 
contains the term.

-- Mark

On Tuesday, November 6, 2018 at 8:59:48 AM UTC-8, Hubert wrote:
>
> Jeremy, thank you so much for taking the time to address my question.
>
> Unfortunately, coming up with a solution that could be merged with the 
> core is going to be beyond the scope of my ability in the foreseeable 
> future.
>
> Best regards,
> Hubert
>
> On Tuesday, 6 November 2018 16:50:06 UTC, Jeremy Ruston wrote:
>>
>> Hi Hubert
>>
>> On 6 Nov 2018, at 15:05, Hubert  wrote:
>>
>> We can get the value of an index in a data dictionary by searching for 
>> the index using getindex.
>>
>> Is there a way to perform a reverse operation that would find index(es) 
>> that have the specified value?
>>
>> The assumption is that all indexes and their values are listed in a 
>> single data dictionary and not across multiple/individual data dictionaries 
>> (I know it's possible in the latter scenario).
>>
>>
>> Indeed, I think it would be feasible to make a “searchindexes” filter so 
>> that [[my data dictionary]searchindexes[foo]] would return the index names 
>> from the input tiddlers that contain the text foo.
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>> Thanks!
>>
>>
>> -- 
>> 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+...@googlegroups.com.
>> To post to this group, send email to tiddl...@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/e0a5add7-8141-4de4-a2e9-55e25dce6821%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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dea61612-7cfb-4859-bff9-a0e071fa8df8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Reverse getindex?

2018-11-06 Thread Hubert
Jeremy, thank you so much for taking the time to address my question.

Unfortunately, coming up with a solution that could be merged with the core 
is going to be beyond the scope of my ability in the foreseeable future.

Best regards,
Hubert

On Tuesday, 6 November 2018 16:50:06 UTC, Jeremy Ruston wrote:
>
> Hi Hubert
>
> On 6 Nov 2018, at 15:05, Hubert > wrote:
>
> We can get the value of an index in a data dictionary by searching for the 
> index using getindex.
>
> Is there a way to perform a reverse operation that would find index(es) 
> that have the specified value?
>
> The assumption is that all indexes and their values are listed in a single 
> data dictionary and not across multiple/individual data dictionaries (I 
> know it's possible in the latter scenario).
>
>
> Indeed, I think it would be feasible to make a “searchindexes” filter so 
> that [[my data dictionary]searchindexes[foo]] would return the index names 
> from the input tiddlers that contain the text foo.
>
> Best wishes
>
> Jeremy.
>
>
> Thanks!
>
>
> -- 
> 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+...@googlegroups.com .
> To post to this group, send email to tiddl...@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/e0a5add7-8141-4de4-a2e9-55e25dce6821%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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/84fac912-08e5-44b7-8ba8-4d366cf12ee8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Reverse getindex?

2018-11-06 Thread Jeremy Ruston
Hi Hubert

> On 6 Nov 2018, at 15:05, Hubert  wrote:
> 
> We can get the value of an index in a data dictionary by searching for the 
> index using getindex.
> 
> Is there a way to perform a reverse operation that would find index(es) that 
> have the specified value?
> 
> The assumption is that all indexes and their values are listed in a single 
> data dictionary and not across multiple/individual data dictionaries (I know 
> it's possible in the latter scenario).

Indeed, I think it would be feasible to make a “searchindexes” filter so that 
[[my data dictionary]searchindexes[foo]] would return the index names from the 
input tiddlers that contain the text foo.

Best wishes

Jeremy.

> 
> Thanks!
> 
> 
> -- 
> 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/e0a5add7-8141-4de4-a2e9-55e25dce6821%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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/822C5996-8B59-48F1-8CD6-19177A21FCDA%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Reverse getindex?

2018-11-06 Thread Hubert
We can get the value of an index in a data dictionary by searching for the 
index using getindex.

Is there a way to perform a reverse operation that would find index(es) 
that have the specified value?

The assumption is that all indexes and their values are listed in a single 
data dictionary and not across multiple/individual data dictionaries (I 
know it's possible in the latter scenario).

Thanks!

-- 
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/e0a5add7-8141-4de4-a2e9-55e25dce6821%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.