Weird behaviour of kookma's node-explorer

Hi everybody and first of all thanks for all the great stuff done around tiddlywiki.

I’m trying to adapt kookma’s node-explorer to suit my need, i.e. displaying all tiddler that share the same field and value of the current tiddler. Example, the current Tiddler has the field ‘jd’ with the value ‘39.02’ and I want to display all tiddlers with this field and the same value in the node-explorer.

I modify $:/plugins/kookma/thinkup/macros/node-explorer as is

\define text-pattern-transclude(){{$(currentTiddler)$.*}}
\define jd-pattern-transclude(){{$(currentTiddler)$!!jd}}

\define linksFilter()[<currentTiddler>!is[system]links[]]
\define backlinksFilter()[<currentTiddler>!is[system]backlinks[]]
\define tagsFilter()[<currentTiddler>!is[system]tagging[]]
\define transclusionFilter()[regexp:text<text-pattern-transclude>]
\define jdFilter()[<currentTiddler>field:jd<jd-pattern-transclude>]

<$set filter="[<tidNodeExplorerConfig>getindex[links]match[yes]then<linksFilter>][<tidNodeExplorerConfig>getindex[backlinks]match[yes]then<backlinksFilter>][<tidNodeExplorerConfig>getindex[tagging]match[yes]then<tagsFilter>][<tidNodeExplorerConfig>getindex[transclusion]match[yes]then<transclusionFilter>][<jdFilter>]"name=mainfilter>

!! Display for debug purpose

Links Filter: <<linksFilter>>

text-pattern-transclude: <<text-pattern-transclude>>

transclusionFilter: <<transclusionFilter>>

jd-pattern-transclude: <<jd-pattern-transclude>>

jdFilter: <<jdFilter>>

<$list filter="[subfilter<mainfilter>count[]compare:number:gteq[1]]"variable=null>
{{||$:/plugins/kookma/thinkup/ui/node-explorer}}
</$list>

And I obtain the follwing result (transclusionFilter (from original) and jdFilter(my modification) didn’t work : nothing is returned.

Links Filter: [!is[system]links[]]

text-pattern-transclude: Mytiddler.*

transclusionFilter: [regexp:text]

jd-pattern-transclude: 39.02

jdFilter: [field:jd]

If I force jdFilter with [field:jd[39.02]] and transclusionFilter with [regexp:text[Mytiddler.*]] it works as expected.

Any Idea ??

Thanks

It is a good idea to mention the person to whom you are referring to their plugin @Mohammad is kookma.

Thanks for the update, it is also a generic question as I didn’t understand the behaviour of Tiddlywiki behind these macros.

If I consider only this two lines

\define text-pattern-transclude(){{$(currentTiddler)$.*}}
\define transclusionFilter()[regexp:text<text-pattern-transclude>]

It works as expected, i.e. <<transclusionFilter>> returns [regexp:text[CurrentTiddlerTitle.*], but once set in this line

<$set filter="[<tidNodeExplorerConfig>getindex[links]match[yes]then<linksFilter>][<tidNodeExplorerConfig>getindex[backlinks]match[yes]then<backlinksFilter>][<tidNodeExplorerConfig>getindex[tagging]match[yes]then<tagsFilter>][<tidNodeExplorerConfig>getindex[transclusion]match[yes]then<transclusionFilter>][<jdFilter>]"name=mainfilter>

<text-pattern-transclude> is replace by empty string.

Anyone to explain that to me ? Thanks in advance.