[twdev] Re: Custom filter operator overriding the results

2018-10-19 Thread bimlas
I just fixed the issue, 
see https://groups.google.com/d/msg/tiddlywiki/VeRlS9Qti8I/IJOM5p4TCAAJ for 
a working demo 
and 
https://github.com/bimlas/TiddlyWiki5/blob/5890ea92cea5252003c5d122e7f408c6ce1c69de/core/modules/filters/kindred.js
 
for the code.

-- 
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/b934c15a-b60c-408b-850c-9e13304b27c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Custom filter operator overriding the results

2018-10-19 Thread bimlas
Ok, I think I found the problem:

I misunderstood the + operator, because I thought that it means 
"intersection". I just 
read 
https://tiddlywiki.com/static/Introduction%2520to%2520filter%2520notation.html 
-> Combination which says that the results of the first filter is the input 
to the second (+ signed) filter. So my filter operator not works, because

+[[Features]kindred[]]

is overwriting the "input" and replacing it with "Features" tiddler.

I just made some small modifications on the code, 
see https://github.com/bimlas/TiddlyWiki5/tree/kindred-filter branch for 
the latest.

-- 
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/0c2e22cb-3032-4706-bbcb-281550e1956f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.