Hi David,
I know this is years later, but this your query was important motivation in
my own tracking down of this.
Parsers build a "parse tree" of nodes that describe the thml entities and
widgets in it's content, and this is used when a _widget_ calls
it's `this.makeChildWidgets();` method.
So, you need to go to the _Widget_ that the parse-tree points to and do
your getVariable, getTiddler, etc and debugging in there.
Investigating the Railroad Plugin on tiddlywiki.com finally brought it all
together for me.
(Coming soon, vastly improved CSV tiddler handling via a rewritten $csv
widget, and hopefully easy csv-> tiddler importing!)
Best,
Joshua Fontany
On Saturday, April 8, 2017 at 7:02:47 PM UTC-7, David Szego wrote:
>
> Hi, how do I know what Tiddler a wikirule parser script is working on?
>
> I'd like to exclude $:/ system Tiddlers from displaying with my rule's
> parsing, so I'm looking to just do an If... return. However, I can't seem
> to find the name of the current Tiddler?
>
> My vast and advanced debugging skills extend to basically this:
>
> exports.init = function(parser) {
> alert($tw.wiki.currentTiddler);
> this.parser = parser;
> ...
>
> but whatever I try, I'm only finding "undefined".
>
> Any hints?
>
> Thanks,
> David.
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/da6aa228-de71-4c94-a180-b2ae4e4827be%40googlegroups.com.