$(currentTiddler)$ and "Title of new journal tiddlers"

200 views
Skip to first unread message

h0p3

unread,
Dec 12, 2018, 6:14:13 PM12/12/18
to TiddlyWiki
In 5.1.17, I use the following for Title of new journal tiddlers ($:/config/NewJournal/Title):

YYYY.0MM.0DD - $(currentTiddler)$:

When I upgrade to 5.1.18, it gives me the output:

2018.12.12 - $(currentTiddler)$:

How can I gain the original functionality back?

Mark S.

unread,
Dec 12, 2018, 7:30:17 PM12/12/18
to TiddlyWiki
I don't know if it's a bug or a feature, but I notice that now if you use

YYYY <<currentTiddler>>


That it works.

-- Mark

TonyM

unread,
Dec 12, 2018, 10:42:34 PM12/12/18
to TiddlyWiki
h0p3

Perhaps the change in 5.1.18 did this ?

Restrict variable substitutions to macros defined with the define pragma

I think perhaps it was fortunate it worked for you before, but marks suggestion was possible always the best way to do it as it makes fewer assumptions, clearly one of which is no longer valid.

Thanks for Highlighting it

Regards
Tony

Mark S.

unread,
Dec 12, 2018, 10:52:10 PM12/12/18
to TiddlyWiki


On Wednesday, December 12, 2018 at 7:42:34 PM UTC-8, TonyM wrote:
h0p3

I think perhaps it was fortunate it worked for you before, but marks suggestion was possible always the best way to do it as it makes fewer assumptions, clearly one of which is no longer valid.


But it wasn't just fortunate -- it's the documented way! So if the change is real and permanent, then the docs need to be updated.

Have fun
-- Mark

TonyM

unread,
Dec 13, 2018, 1:27:26 AM12/13/18
to TiddlyWiki
Yes they will then !

If I had tried to do this without such documentation, I would have tried <<currentTiddler>> first, but then that is just me.

Thanks Mark

Jeremy Ruston

unread,
Dec 13, 2018, 4:30:48 AM12/13/18
to tiddl...@googlegroups.com
This is indeed the result of a change in v5.1.18:


The problem was that the set widget was performing the same variable text substitutions as a macro definition. This behaviour was never documented, and was entirely inadvertent.

Meanwhile, it sounds like a behaviour that depended on that bug has been documented.

That puts us in the invidious position of being forced to either break backwards compatibility or to leave the original bug unfixed. To me, the original bug is much worse, and much harder to debug. (I mean that a text substitution that is unexpectedly not performed is much easier to spot than a text substitution that is unexpectedly performed).

Best wishes

Jeremy

--
Jeremy Ruston

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/f87d25b0-a7b7-4a54-8d38-2d4b4e02b1df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark S.

unread,
Dec 13, 2018, 9:53:51 AM12/13/18
to TiddlyWiki
Gosh, wish I had known about the SetWidget's super powers ;-)

I suspect only a small percentage of users avail themselves of the formatting features for "new journal here.". The ones that do will be
somewhat techy and may even check the original documentation to see if things have changed.

So ... maybe just a change to the documentation will be sufficient, possibly with a note that a former usage has been removed ??

Thanks for making such a great product!

-- Mark

h0p3

unread,
Dec 13, 2018, 1:25:08 PM12/13/18
to TiddlyWiki
Thank you all! It doesn't matter anymore, but I have experienced some bugs with $(currentTiddler)$ in 5.1.17; I couldn't figure out a reason for these very rare vowel substitutions ("a" became "4" sometimes). In any case, I am grateful to have a superior tool to replace it.

TonyM

unread,
Dec 13, 2018, 6:19:43 PM12/13/18
to TiddlyWiki
Mark,

I cant see the superpower of the set widget you refer to?

Regards
Tony

Mark S.

unread,
Dec 13, 2018, 6:39:40 PM12/13/18
to TiddlyWiki
The Set Widget, before 5.1.18, could substitute $(variable)$ like a macro.

OK, maybe a very minor super-power. ;-)

-- Mark

@magasine

unread,
Dec 15, 2018, 3:25:57 PM12/15/18
to TiddlyWiki
Hi!

What adjustment would it take for my old table of contents to work again in version 5.1.18?

<<toc-selective-expandable "$(currentTitle)$" "sort[title]">>

Mark S.

unread,
Dec 15, 2018, 3:34:20 PM12/15/18
to TiddlyWiki
Where are you using this? Offhand, this should work in most places:

<$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> sort="sort[title]" />

Good luck!
-- Mark

@magasine

unread,
Dec 15, 2018, 3:45:21 PM12/15/18
to TiddlyWiki
Very grateful for the quick assistance!
It works perfectly, as before.

Pit.W.

unread,
Jan 29, 2019, 10:43:48 AM1/29/19
to tiddl...@googlegroups.com

Thanks again, works  and solved a major problem

-- Pit.W

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

For more options, visit https://groups.google.com/d/optout.


_________________________________________________________________
________________________________________________________
Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de


Reply all
Reply to author
Forward
0 new messages