On Thursday, May 25, 2017 at 9:04:11 AM UTC-7, @TiddlyTweeter wrote:
>
> I just double-checked it in a fresh empty TW. Sorry, its not closing the
> Tiddler.
>
I don't have a solution (yet), but here's some details that might help:
This is the message being sent to close the tiddler
<$action-sendmessage $message="tm-close-tiddler" $param=<<currentTiddler>>/>
However, because this button is invoked while editing the tiddler, the
value of <<currentTiddler>> includes the "Draft of" prefix (i.e, Draft of
'Foobar').
Fortunately, when a tiddler is being edited, the underlying title (i.e.,
without the "Draft of" prefix) is available in the "draft.title" field.
Thus, you can write:
<$action-sendmessage $message="tm-close-tiddler" $param={{!!draft.title}}/>
Unfortunately, after a quick test on TiddlyWiki.com, this also does not
seem to work as desired and the underlying tiddler is still not being
closed.
I think the problem may be a matter of timing. At the moment that the
button is pressed, only the "Draft of" tiddler is displayed and the
underlying tiddler is not. Thus, while you can issue a tm-close-tiddler to
close the currently visible draft tiddler, the message to close the
underlying tiddler is ignored since that tiddler is not actually "open" at
the time.
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals
--
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/9a7f2cd9-c363-43ee-97ee-2e24c33d2391%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.