I working on a filter operator that gathering the "family" of a tiddler, 
the "field of connection" can be set (defaults to "tags"):

[kindred:<direction>[<field>]]

For details, 
see https://groups.google.com/d/msg/tiddlywiki/VeRlS9Qti8I/CX3F7P62BwAJ
Example wiki is attached 
to https://groups.google.com/d/msg/tiddlywiki/VeRlS9Qti8I/UmcavFe_BwAJ
The current version of the code itself (which works only on prerelease 
version, needs restart after importing) is 
on 
https://github.com/bimlas/TiddlyWiki5/blob/f5790f0973d8c46156cd6ad995491732cbc16b2f/core/modules/filters/kindred.js

About my problem:

The filter works well if I using only one at a time, for example:

[[Drag and Drop]kindred[]]

It's returning the "family" of "Drag and Drop" (every tiddler related to it 
by tag, recursively):

   - Features
   - TableOfContents 
   - $:/tags/SideBar 
   - DragAndDropMechanism

The problem comes alive when I try to filter this list by another "kindred" 
filter:

[[Drag and Drop]kindred[]] +[[Features]kindred[]]

With this expression, I would like to get the intersection of the two 
lists, but it's returning only the results of the second expression. I 
tried to swap the expressions, in this case the "family" of "Drag and Drop" 
shown, thus I'm sure that my operator overriding the results list at all. I 
did another probe:

[[Features]kindred[]] +[tag[Drag and Drop]]

Only "DragAndDropMechanism" is shown in the list (which is good), but when 
I swap the expressions:

[tag[Drag and Drop]] +[[Features]kindred[]]

than the "family" of "Features" is listed.

I looked at another filter operators ("tag" for example), but I cannot 
recognize the root of the problem: my operator seems to be correct.

What I doing wrong?

Again, here's the current code (try on prerelease, restart after 
importing): 
https://github.com/bimlas/TiddlyWiki5/blob/f5790f0973d8c46156cd6ad995491732cbc16b2f/core/modules/filters/kindred.js

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/5a4ae310-e891-49c3-b1dc-6bcbbc41ce0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to