Hi Mohammad

Just to clarify what’s going on, the filter expression 
"[$filter$allbefore:include{!!current-item}]” is interpreted as an invocation 
of the filter operator “$filter$allbefore” (the $filter$ is treated literally 
since we’re not inside a macro) with the suffix “include” and the operand 
transcluded from the “current-item” field of the current tiddler. Because there 
usually isn’t such a field present, the operand will be read as a blank string. 
Meanwhile, because the filter operator doesn’t exist, the system falls back to 
using the “field” operator, making the whole expression equivalent to 
“[field:include[]]” which will look for tiddlers with a blank field “include”. 
Perhaps unexpectedly, the “field” operator treats tiddlers with a missing field 
as if the field was blank.

By the way, the technique I used to explore this filter was to run the 
following in the developer console of tw5.com <http://tw5.com/>:

$tw.wiki.parseFilter("[$filter$allbefore:include{!!current-item}]")

The result is a simple JSON representation of the syntax tree, which can help 
you to understand how the system is seeing the filter.

Best wishes

Jeremy.

> On 17 Oct 2018, at 15:51, Mohammad <[email protected]> wrote:
> 
> Yes, the filter is empty so, why the .js tiddler are transcluded?
> 
> The first tiddler transcluded is $:/library/sjcl.js 
> <https://tiddlywiki.com/#%24%3A%2Flibrary%2Fsjcl.js>
> 
> Why allbefore empty is some .js tiddlers?
> 
> I expect an empty result.
> 
> Mohammad
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/f61c7a66-685a-4451-853d-57b48e5312c0%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/f61c7a66-685a-4451-853d-57b48e5312c0%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <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 [email protected].
To post to this group, send email to [email protected].
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/4BA0C037-7119-4C8D-92CA-B91067109CAA%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to