[tw] Re: How to do an exact match of tags

2016-12-20 Thread steve
Tobias

It worked just fine on my initial test case.
I will also try some of the other features that you described in your 
announcement.

Thanks
Steve Wharton

On Monday, December 19, 2016 at 2:11:16 PM UTC-5, Tobias Beer wrote:
>
> Hi Steve,
>  
>
>> I think that could work very nicely.
>>
>
> Have a look at: 
> https://groups.google.com/forum/?fromgroups=#!topic/tiddlywiki/D8wD1gkUWJI
>
> Best wishes,
>
> Tobias.
>

-- 
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/1033a789-33cf-45d4-a83f-c25be7d33328%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-19 Thread Tobias Beer
Hi Steve,
 

> I think that could work very nicely.
>

Have a look at: 
https://groups.google.com/forum/?fromgroups=#!topic/tiddlywiki/D8wD1gkUWJI

Best wishes,

Tobias.

-- 
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/cbb1b60c-7958-4b94-8168-0c88d3b7d2f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-12 Thread steve
Tobias

I think that could work very nicely.

Thanks
Steve Wharton.


On Monday, December 12, 2016 at 1:04:52 PM UTC-5, Tobias Beer wrote:
>
> Hi Steve,
>
> I could extend:
>
> http://tobibeer.github.io/tw5-plugins/#contains
>
> with an option that goes:
>
> contains: $exactly[]
>
> In other words, give me all tiddlers where the field  contains 
> exactly and only the titles specified via .
>
> Would that help?
>
> Best wishes,
>
> Tobias.
>

-- 
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/952a12d1-72c3-4d61-91c1-e6325d0913cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-12 Thread Tobias Beer
Hi Steve,

I could extend:

http://tobibeer.github.io/tw5-plugins/#contains

with an option that goes:

contains: $exactly[]

In other words, give me all tiddlers where the field  contains 
exactly and only the titles specified via .

Would that help?

Best wishes,

Tobias.

-- 
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/3ad51ada-f2f6-4e89-87d2-e0742ce2c179%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-11 Thread Tobias Beer
Hi Steve,
 
Thanks for your reply. I still have no idea why you want a list of tiddlers 
that are "only tagged foo" but not any other tag ...about the process you 
imagine where this would be useful.

Since I have you "on the line" so to speak is there any way to combine the 
> contains and count macros
> into a single filter (instead of two)?
>

There always is a way, but as things stand, there is no motivation I can 
think of. Do you experience any problems with chaining the filters you need?

Best wishes,

Tobias. 

-- 
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/cab665b4-5adc-483b-acb1-df7c04b95e66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-09 Thread steve
Tobias

I'm glad you asked...

My use case is to be able to do a quick visual scan of the tags for a 
particular subcategory of my wikis.
For example, the attachment from my Nov 29 email shows the tagging patterns 
for music related tiddlers.
I could do the same thing for action items, event logs, budget summaries, 
project summaries. 

In short, it makes curation of the tiddlers much easier because I can 
easily see patterns, inconsistencies,
or poorly tagged tiddlers. It is easier because I do not have to specify 
the specific tagging patterns a prior
but just run a report and see what is there. Otherwise I would lose track 
of tiddlers, and worse, unknowingly
repeat them.

Also I think it might be useful to (eventually) create a list filter macro 
that does the exact matching.

Since I have you "on the line" so to speak is there any way to combine the 
contains and count macros
into a single filter (instead of two)?

Thanks
Steve Wharton






On Friday, December 9, 2016 at 12:52:26 PM UTC-5, Tobias Beer wrote:
>
> Hi steve,
>
> May I ask, other than: because I wanted to see if I can,
> what's the point of this "[taggedOnly[foo]]" exercise?
>
> Best wishes,
>
> Tobias.
>

-- 
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/ecb5272e-cd8b-4e58-9da5-0027955e36d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-09 Thread Tobias Beer
Hi steve,

May I ask, other than: because I wanted to see if I can,
what's the point of this "[taggedOnly[foo]]" exercise?

Best wishes,

Tobias.

-- 
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/4724361a-7231-46da-88f3-8c686cfc47f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-09 Thread steve
All

The listViaContains macro shown in an previous post does not identify exact 
matches.
The xMatchTags macro listed below does return exact matches.  It uses the 
"contain and 
"count" macros from Tobias Beer.

My thanks to Tobias and the folks that kindly responded to my question.

Steve Wharton



```
\define xMatchTags(inputTiddler)



<$set name="refTiddler" value="""$inputTiddler$""">
<$set name="refTagList" filter="[tags[]sort[]]">
<$set name="refTagCount" filter="[tags[]count[]]">


<$list filter="[contains:tags $all] +[sort[title]]" 
variable="nextMatchingTiddler">
<$list filter="[tags[]count]">
<$link to=<> ><>, 



\end
```

On Friday, December 9, 2016 at 8:10:33 AM UTC-5, steve wrote:
>
> Cmari
>
> Yes there is and I somehow managed to not include it. Here it is ...
>
> Steve Wharton
>
> ```
> \define listViaContains()
>
> 
>
> <$list filter="[contains:tags $all]">
> <$link><$view field="title"/>, 
>
> \end
>
> 
> <$set name=currentTags filter='[tags[]sort[]]'>
> <>
> 
> ```
>
>
>
>
> On Thursday, December 8, 2016 at 4:18:50 PM UTC-5, cmari wrote:
>>
>> Hi Steve,
>> Is there another tiddler that contains the macro <>? 
>> Sorry if I overlooked something in your post.
>> The table is really useful - thanks!
>> cmari
>>
>> On Monday, December 5, 2016 at 5:45:28 AM UTC-8, steve wrote:
>>>
>>> An Update:
>>>
>>> Thanks to everything that has responded. Alas, thus far, I have been 
>>> unable to find or develop an exact match function.
>>>
>>> Here is the macro I promised that generates a table which lists tiddlers 
>>> in order of their respective tags field.
>>> Each unique set of tags is listed on a separate line of the table, 
>>> followed by the list of tiddlers that possess those tags.
>>>
>>> Writing the plugin was made much easier thanks to Tobias Beer's 
>>> ''contains'' plugin, which can be found at 
>>> http://tobibeer.github.io/tw5-plugins/#contains.
>>> I am having difficulties in setting up an example on tiddyspot. As an 
>>> alternative a listing of the macro is given below.
>>>
>>> Steve Wharton
>>>
>>> ```
>>> \define listAsTableSortedByTagField(filter:"[!is[system]]" titleText 
>>> captionText)
>>>
>>> 
>>>
>>> 
>>> <$button>Sort Tags In Place (Ascending Order)
>>> <$list filter="[!is[system]!has[draft.of]] +$filter$">
>>> <$set name=TagsString filter='[tags[]sort[]]'>
>>> <$action-setfield tags=<>/>
>>> 
>>> 
>>> 
>>>
>>>
>>> 
>>> 
>>> 
>>> Unique Sets of Tags
>>> Matching Tiddlers per Tag Set
>>> 
>>> <$list filter="$filter$ +[each[tags]] +[sort[tags]]">
>>> <$set name=currentTags filter='[tags[]sort[]]'>
>>> <$list filter="[all[current]tags[]]" 
>>> template="$:/core/ui/TagTemplate" storyview="pop"/>
>>> <>
>>> 
>>> 
>>> 
>>> 
>>>
>>> \end
>>>
>>> 
>>> <>> titleText:"listSortedByTagField - example application">>
>>> ```
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>

-- 
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/95530fd8-286b-4373-aa2f-a3650c737f2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-09 Thread steve
Cmari

Yes there is and I somehow managed to not include it. Here it is ...

Steve Wharton

```
\define listViaContains()



<$list filter="[contains:tags $all]">
<$link><$view field="title"/>, 

\end


<$set name=currentTags filter='[tags[]sort[]]'>
<>

```




On Thursday, December 8, 2016 at 4:18:50 PM UTC-5, cmari wrote:
>
> Hi Steve,
> Is there another tiddler that contains the macro <>? 
> Sorry if I overlooked something in your post.
> The table is really useful - thanks!
> cmari
>
> On Monday, December 5, 2016 at 5:45:28 AM UTC-8, steve wrote:
>>
>> An Update:
>>
>> Thanks to everything that has responded. Alas, thus far, I have been 
>> unable to find or develop an exact match function.
>>
>> Here is the macro I promised that generates a table which lists tiddlers 
>> in order of their respective tags field.
>> Each unique set of tags is listed on a separate line of the table, 
>> followed by the list of tiddlers that possess those tags.
>>
>> Writing the plugin was made much easier thanks to Tobias Beer's 
>> ''contains'' plugin, which can be found at 
>> http://tobibeer.github.io/tw5-plugins/#contains.
>> I am having difficulties in setting up an example on tiddyspot. As an 
>> alternative a listing of the macro is given below.
>>
>> Steve Wharton
>>
>> ```
>> \define listAsTableSortedByTagField(filter:"[!is[system]]" titleText 
>> captionText)
>>
>> 
>>
>> 
>> <$button>Sort Tags In Place (Ascending Order)
>> <$list filter="[!is[system]!has[draft.of]] +$filter$">
>> <$set name=TagsString filter='[tags[]sort[]]'>
>> <$action-setfield tags=<>/>
>> 
>> 
>> 
>>
>>
>> 
>> 
>> 
>> Unique Sets of Tags
>> Matching Tiddlers per Tag Set
>> 
>> <$list filter="$filter$ +[each[tags]] +[sort[tags]]">
>> <$set name=currentTags filter='[tags[]sort[]]'>
>> <$list filter="[all[current]tags[]]" 
>> template="$:/core/ui/TagTemplate" storyview="pop"/>
>> <>
>> 
>> 
>> 
>> 
>>
>> \end
>>
>> 
>> <> titleText:"listSortedByTagField - example application">>
>> ```
>>
>>
>>
>>
>>
>>
>>
>>

-- 
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/489d5045-dcd0-4ec0-8354-f34ea24e0663%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-08 Thread cmari
Hi Steve,
Is there another tiddler that contains the macro <>? Sorry 
if I overlooked something in your post.
The table is really useful - thanks!
cmari

On Monday, December 5, 2016 at 5:45:28 AM UTC-8, steve wrote:
>
> An Update:
>
> Thanks to everything that has responded. Alas, thus far, I have been 
> unable to find or develop an exact match function.
>
> Here is the macro I promised that generates a table which lists tiddlers 
> in order of their respective tags field.
> Each unique set of tags is listed on a separate line of the table, 
> followed by the list of tiddlers that possess those tags.
>
> Writing the plugin was made much easier thanks to Tobias Beer's 
> ''contains'' plugin, which can be found at 
> http://tobibeer.github.io/tw5-plugins/#contains.
> I am having difficulties in setting up an example on tiddyspot. As an 
> alternative a listing of the macro is given below.
>
> Steve Wharton
>
> ```
> \define listAsTableSortedByTagField(filter:"[!is[system]]" titleText 
> captionText)
>
> 
>
> 
> <$button>Sort Tags In Place (Ascending Order)
> <$list filter="[!is[system]!has[draft.of]] +$filter$">
> <$set name=TagsString filter='[tags[]sort[]]'>
> <$action-setfield tags=<>/>
> 
> 
> 
>
>
> 
> 
> 
> Unique Sets of Tags
> Matching Tiddlers per Tag Set
> 
> <$list filter="$filter$ +[each[tags]] +[sort[tags]]">
> <$set name=currentTags filter='[tags[]sort[]]'>
> <$list filter="[all[current]tags[]]" 
> template="$:/core/ui/TagTemplate" storyview="pop"/>
> <>
> 
> 
> 
> 
>
> \end
>
> 
> < titleText:"listSortedByTagField - example application">>
> ```
>
>
>
>
>
>
>
>

-- 
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/78a8ccd9-4847-4e50-a530-d76c69b5d5ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-08 Thread cmari
Hi Stephen,
Is there another tiddler that contains the <> macro? Even 
without it, the table is useful - thanks! 
(Sorry if I overlooked something in your post.)
cmari

On Monday, December 5, 2016 at 5:45:28 AM UTC-8, steve wrote:
>
> An Update:
>
> Thanks to everything that has responded. Alas, thus far, I have been 
> unable to find or develop an exact match function.
>
> Here is the macro I promised that generates a table which lists tiddlers 
> in order of their respective tags field.
> Each unique set of tags is listed on a separate line of the table, 
> followed by the list of tiddlers that possess those tags.
>
> Writing the plugin was made much easier thanks to Tobias Beer's 
> ''contains'' plugin, which can be found at 
> http://tobibeer.github.io/tw5-plugins/#contains.
> I am having difficulties in setting up an example on tiddyspot. As an 
> alternative a listing of the macro is given below.
>
> Steve Wharton
>
> ```
> \define listAsTableSortedByTagField(filter:"[!is[system]]" titleText 
> captionText)
>
> 
>
> 
> <$button>Sort Tags In Place (Ascending Order)
> <$list filter="[!is[system]!has[draft.of]] +$filter$">
> <$set name=TagsString filter='[tags[]sort[]]'>
> <$action-setfield tags=<>/>
> 
> 
> 
>
>
> 
> 
> 
> Unique Sets of Tags
> Matching Tiddlers per Tag Set
> 
> <$list filter="$filter$ +[each[tags]] +[sort[tags]]">
> <$set name=currentTags filter='[tags[]sort[]]'>
> <$list filter="[all[current]tags[]]" 
> template="$:/core/ui/TagTemplate" storyview="pop"/>
> <>
> 
> 
> 
> 
>
> \end
>
> 
> < titleText:"listSortedByTagField - example application">>
> ```
>
>
>
>
>
>
>
>

-- 
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/7443d9ed-148a-4f76-bc81-8b61a9ac89c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-05 Thread steve
An Update:

Thanks to everything that has responded. Alas, thus far, I have been unable 
to find or develop an exact match function.

Here is the macro I promised that generates a table which lists tiddlers in 
order of their respective tags field.
Each unique set of tags is listed on a separate line of the table, followed 
by the list of tiddlers that possess those tags.

Writing the plugin was made much easier thanks to Tobias Beer's 
''contains'' plugin, which can be found at 
http://tobibeer.github.io/tw5-plugins/#contains.
I am having difficulties in setting up an example on tiddyspot. As an 
alternative a listing of the macro is given below.

Steve Wharton

```
\define listAsTableSortedByTagField(filter:"[!is[system]]" titleText 
captionText)




<$button>Sort Tags In Place (Ascending Order)
<$list filter="[!is[system]!has[draft.of]] +$filter$">
<$set name=TagsString filter='[tags[]sort[]]'>
<$action-setfield tags=<>/>








Unique Sets of Tags
Matching Tiddlers per Tag Set

<$list filter="$filter$ +[each[tags]] +[sort[tags]]">
<$set name=currentTags filter='[tags[]sort[]]'>
<$list filter="[all[current]tags[]]" 
template="$:/core/ui/TagTemplate" storyview="pop"/>
<>





\end


<>
```







-- 
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/381c3f58-0468-401f-9f93-7091e4806a46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-12-01 Thread steve
PMario

I will get to work to setup an TiddlySpot instance to compare the various 
solutions that have been suggested. Thanks everybody!


My ultimate use case would be to have a macro, that given the name of an 
InputTiddler, lists all of the tiddlers that have the exact set of tags
as the Input Tiddler.

Tobias Beer has a "contains" plugin 
(http://tobibeer.github.io/tw5-plugins/#contains) that comes close in that 
it supports a programmatic way 
to specify that all of the tags to be matched, i.e., by setting the list 
variable in the snippet below.

For example consider the modified snippet from one of Tobias' examples as 
follows:

<$vars list="music genre">

<$list filter="[contains:tags $all]">
<$link><$view field="title"/>
''field:'' {{!!tags}}




As expected this returns all tidders that have both the "music" and "genre" 
tag including tiddlers that have other tags in addition to "music" and 
"genre".

A possible "what if" solution to my question would be to imagine something 
like an "only" option which 
would match tiddlers that contained only the "music" and "genre" tags. For 
example:

<$vars list="music genre">

<$list filter="[contains:tags $only]">
<$link><$view field="title"/>
''field:'' {{!!tags}}




Steve Wharton


On Wednesday, November 30, 2016 at 5:46:56 PM UTC-5, PMario wrote:
>
> On Wednesday, November 30, 2016 at 7:02:25 PM UTC+1, steve wrote:
>>
>> Although I can't say that I understood the use of prefixes, the example 
>> appeared to perform a similar action as a [tag[A]tag[B]] filter. It also 
>> found the additional test tiddler tagded with A, B, and C.
>>
>
> Matabele's example is based on filter runs, which are basically performing 
> a logical AND. IMO it's very close, to what you requested. You just need to 
> tweak it, to your needs. 
>
>
> http://tiddlywiki.com/#Filter%20Run:%5B%5BFilter%20Run%5D%5D%20%5B%5BFilter%20Expression%5D%5D
>  
>
> -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/6e648314-0390-4ecf-8df4-62c6baedfe40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-30 Thread PMario
On Wednesday, November 30, 2016 at 7:02:25 PM UTC+1, steve wrote:
>
> Although I can't say that I understood the use of prefixes, the example 
> appeared to perform a similar action as a [tag[A]tag[B]] filter. It also 
> found the additional test tiddler tagded with A, B, and C.
>

Matabele's example is based on filter runs, which are basically performing 
a logical AND. IMO it's very close, to what you requested. You just need to 
tweak it, to your needs. 

http://tiddlywiki.com/#Filter%20Run:%5B%5BFilter%20Run%5D%5D%20%5B%5BFilter%20Expression%5D%5D
 


-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/b52aa316-1e54-4336-a88b-0de14b56fa8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-30 Thread 'Mark S.' via TiddlyWiki
I think there's a way to do this easily assuming:


   - You don't mind pressing a button to update results.
   - None of your tags has a space (this may not be essential)
   - You don't mind hand crafting the tag/label you're looking for. See 
   below
   

See code below. I added "About" and "Widgets" to some tiddlers at 
tiddlywiki.com for my tests. First you press a button that will create a 
field "aratags" that puts the list of sorted tag values for each tiddler 
into it's own field. I have to do this because the original tag values are 
not stored sorted. 

Then, in the list below, the code filters for aratags field with 
hand-crafted contents "About Widgets". Only tiddlers matching this exact 
criteria are selected.

Have fun,
Mark  



<$button>
<$list filter="[tag[About]tag[Widgets]]">
<$action-listops $field="aratags" $filter="[all[current]tags[]sort[]]"/>

Populate array


<$list filter="[field:aratags[About Widgets]]"/>



On Monday, November 28, 2016 at 7:00:06 PM UTC-8, steve wrote:
>
> Hi:
>
> Does anyone know of a way to do an exact tag match, i.e., there is a one 
> to one correspondence between the tags specified in the filter and the 
> matching tiddlers.
>
> For example for tidders Tom (tagged A), Dick (tagged A, B) and Harry 
> (tagged A, B and C), a filter search for [tag[A]] would return Tom (but not 
> Dick or Harry) and a filter search for [tag[A]tag[B]] would return Dick 
> (but not Harry). The only way that I can think of so far would be to use 
> javascript to compare the contents of the tags field.
>
> The use case is to be able to generate a list of matching tiddlers for 
> each unique group of tags. I have a macro to do this by first doing sorting 
> the tags in place for each tiddler;  sorting the tiddlers by the tags field 
> (i.e., sort[tags]); and then listing each tiddler name followed by its 
> corresponding tag pills. I am trying to stretch my tiddlywiki horizons by 
> finding a way to do this while listing each unique combination of tags only 
> once followed by list of tiddlers that have that exact combination of tags.
>
> Thanks
> Steve
>
>
>

-- 
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/ca61026f-5401-444f-9160-661aa8be8d64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-30 Thread steve
Mario

No quarrel from me that the all combinations functionality would be a 
reasonable github request.

Steve Wharton

On Wednesday, November 30, 2016 at 2:19:32 AM UTC-5, Mat wrote:
>
> Steve, I'd agree with PMario that it is a reasonable github request even 
> if you personally don't need all possible combos in this case. To be able 
> to get an exact tag match seems like a general enough need. I'm surprised 
> such a request hasn't come up before, even if I'm sure the need for it has.
>
> <:-)
>

-- 
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/58e08f14-2c45-4157-a3ee-fb356eb8bc1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-30 Thread steve
Matabele 

Thanks for the example. I tried out "Checklist Example -- Select by ANDing 
Tags". Although I can't say that I understood the use of prefixes, the 
example appeared to perform a similar action as a [tag[A]tag[B]] filter. It 
also found the additional test tiddler tagded with A, B, and C.

Steve Wharton


Checklist Example -- Select by ANDing Tags

On Wednesday, November 30, 2016 at 2:56:41 AM UTC-5, Matabele wrote:
>
> Hi
>
> There are a few examples of selecting by tag combinations here 
> .
>
> regards
>
> On Tuesday, 29 November 2016 05:00:06 UTC+2, steve wrote:
>>
>> Hi:
>>
>> Does anyone know of a way to do an exact tag match, i.e., there is a one 
>> to one correspondence between the tags specified in the filter and the 
>> matching tiddlers.
>>
>> For example for tidders Tom (tagged A), Dick (tagged A, B) and Harry 
>> (tagged A, B and C), a filter search for [tag[A]] would return Tom (but not 
>> Dick or Harry) and a filter search for [tag[A]tag[B]] would return Dick 
>> (but not Harry). The only way that I can think of so far would be to use 
>> javascript to compare the contents of the tags field.
>>
>> The use case is to be able to generate a list of matching tiddlers for 
>> each unique group of tags. I have a macro to do this by first doing sorting 
>> the tags in place for each tiddler;  sorting the tiddlers by the tags field 
>> (i.e., sort[tags]); and then listing each tiddler name followed by its 
>> corresponding tag pills. I am trying to stretch my tiddlywiki horizons by 
>> finding a way to do this while listing each unique combination of tags only 
>> once followed by list of tiddlers that have that exact combination of tags.
>>
>> Thanks
>> Steve
>>
>>
>>

-- 
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/d1c43335-265c-489c-a66a-79c6292abbd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-30 Thread PMario
On Wednesday, November 30, 2016 at 8:56:41 AM UTC+1, Matabele wrote:
>
> There are a few examples of selecting by tag combinations here 
> .
>

thats interesting. thx for sharing.
-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, 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/01954054-2298-48d9-9f2e-4cd51ba60b5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-29 Thread Matabele
Hi

There are a few examples of selecting by tag combinations here 
.

regards

On Tuesday, 29 November 2016 05:00:06 UTC+2, steve wrote:
>
> Hi:
>
> Does anyone know of a way to do an exact tag match, i.e., there is a one 
> to one correspondence between the tags specified in the filter and the 
> matching tiddlers.
>
> For example for tidders Tom (tagged A), Dick (tagged A, B) and Harry 
> (tagged A, B and C), a filter search for [tag[A]] would return Tom (but not 
> Dick or Harry) and a filter search for [tag[A]tag[B]] would return Dick 
> (but not Harry). The only way that I can think of so far would be to use 
> javascript to compare the contents of the tags field.
>
> The use case is to be able to generate a list of matching tiddlers for 
> each unique group of tags. I have a macro to do this by first doing sorting 
> the tags in place for each tiddler;  sorting the tiddlers by the tags field 
> (i.e., sort[tags]); and then listing each tiddler name followed by its 
> corresponding tag pills. I am trying to stretch my tiddlywiki horizons by 
> finding a way to do this while listing each unique combination of tags only 
> once followed by list of tiddlers that have that exact combination of tags.
>
> Thanks
> Steve
>
>
>

-- 
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/c8e0cdb4-73c6-41e8-9133-ceca2877e1ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-29 Thread Mat
Steve, I'd agree with PMario that it is a reasonable github request even if 
you personally don't need all possible combos in this case. To be able to 
get an exact tag match seems like a general enough need. I'm surprised such 
a request hasn't come up before, even if I'm sure the need for it has.

<:-)

-- 
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/9e63acb1-3154-40c3-b1af-792efc471a58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-29 Thread steve
Jed, PMario

To clarify, what I am trying to do is to list all of the unique sets of 
tags actually present in the wiki, not all possible combinations. Perhaps 
an example
would help. I have uploaded a file called "listAsTableSortedByTags Example 
Output.pdf" that shows an example output showing a listing of tiddlers
sorted by the tags field.

If you look about a third of the way down in the example output, you will 
notice the "artistTbd" tiddler. It has two tags "artist" and "music". If I 
used the
typical filter "[tag[artist]tag[music]]" it would list the "artistTbd" 
tiddler as expected, but it would also list the seven other tiddlers, e.g., 
"Archie Fisher"
that also have the tags "artist" and "music", but aren't an exact match 
because they include other tags in addition to "artist" and "music".

Thanks for responding.
Steve Wharton


On Tuesday, November 29, 2016 at 6:48:32 AM UTC-5, PMario wrote:
>
> Hi Steve, 
>
> I think, this could be a feature request (github issue) for a new filter 
> operator. since the number of possible combinations rises non linear. So 
> having nested lists will be not very convenient. 
>
> -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/ff7e2860-d26b-4e9c-a97f-2942bd88eb80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


listAsTableSortedByTags Example Output.pdf
Description: Adobe PDF document


[tw] Re: How to do an exact match of tags

2016-11-29 Thread PMario
Hi Steve, 

I think, this could be a feature request (github issue) for a new filter 
operator. since the number of possible combinations rises non linear. So 
having nested lists will be not very convenient. 

-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/11994a86-b337-4a2a-a737-de0a056b0054%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to do an exact match of tags

2016-11-28 Thread Jed Carty
I wrote a thing about how filter expressions can be represented as logic 
statements that may help you but I don't have the link on this computer. 
The quick answer is that you can use this:

<$list filter='[tag[TableOfContents]]'>
<$list filter='[is[current]tags[]]-[[TableOfContents]]' 
emptyMessage="""<>""">




to test it put it in a tiddler on tiddlywiki.com and look at the list, then 
add another tag to HelloThere and it will be removed from the list. You can 
change the emptyMessage to whatever you want to display for each tiddler. 
If you want more than one tag to be tested for you just make the first 
filter something like [tag[a]tag[b]] and add -[[a]]-[[b]] to the second 
filter.

There is almost certainly an easier way to do whatever it is you are trying 
to do.

-- 
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/b42623f9-40c1-426c-b250-83ff2c7834a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.