What Tiddler the parser is working on?

104 views
Skip to first unread message

David Szego

unread,
Apr 8, 2017, 10:02:47 PM4/8/17
to TiddlyWikiDev
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.

Joshua Fontany

unread,
Jan 27, 2020, 4:11:36 PM1/27/20
to TiddlyWikiDev
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

A Gloom

unread,
Jan 27, 2020, 8:55:57 PM1/27/20
to tiddly...@googlegroups.com
Joshua,

>>(Coming soon, vastly improved CSV tiddler handling via a rewritten $csv widget, and hopefully easy csv-> tiddler importing!)

very interesting-- will definitely be checking it out

>>Investigating the Railroad Plugin on tiddlywiki.com finally brought it all together for me.

while examining it, is it possible to customize its colors (in
particular the white node/"text fields" backgrounds) it doesn't apply
inverted system/browser theme like the rest of the wiki does.
> --
> 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 tiddlywikide...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/da6aa228-de71-4c94-a180-b2ae4e4827be%40googlegroups.com.

Jeremy Ruston

unread,
Jan 30, 2020, 7:17:37 AM1/30/20
to TiddlyWikiDev
Hi A Gloom

while examining it, is it possible to customize its colors (in
particular the white node/"text fields" backgrounds) it doesn't apply
inverted system/browser theme like the rest of the wiki does.

A Gloom

unread,
Feb 2, 2020, 7:39:17 AM2/2/20
to tiddly...@googlegroups.com
Jeremy,

Thank you very much-- always been interested in the railroad diagrams
for TW. I can post a screenshot of how they look with my system theme
over in the users group if you want.

have you seen this interesting article sbout css and Windows high
contrast themes?

https://groups.google.com/a/chromium.org/d/msg/blink-dev/N77UCHle_rw/omPE8XRzFQAJ
> To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/AEA120B3-7331-4D11-85F3-68DF34FA1B10%40gmail.com.
Reply all
Reply to author
Forward
0 new messages