TiddlyBlink tiddlybroke...

100 views
Skip to first unread message

David Gifford

unread,
Jan 28, 2020, 10:18:52 PM1/28/20
to TiddlyWiki
Uh oh...

I am experimenting difficulties in a TiddlyBlink file:

1) The datetimestamp in the new-here-with datetimestamp is freezing, so the second and third, etc tiddlers that I create from the same tiddler are producing the same datetimestamp, and I am unknowingly overwriting my previous notes. I thought it might be the / I added to the datetimestamps, but I tried it with dashes and with simple spaces between years, days, months and hours and seconds, and they all produce the same results.

2) A lesser but also serious concern is that at least the following scenarios keep the notes from showing under the tiddler:

a) tiddler title begins with a letter that has an accent É (accented letters in the middle of the tiddler title not a problem Iñiguéz works but not Íñiguez)
b) tiddler title has more than one /
c) tiddler title has both ( and )
d) tiddler title ends in a period.
e) I have no idea how many more items will break it...

Any ideas what is happening? Thanks in advance for any advice. https://giffmex.org/experiments/roamwiki.experiment.html


David Gifford

unread,
Jan 29, 2020, 9:39:58 AM1/29/20
to TiddlyWiki
bump for email...or just to get a reply...me so sad

TonyM

unread,
Jan 29, 2020, 6:51:14 PM1/29/20
to TiddlyWiki
David

Did you notice?

A new one replaces the last one as an open tiddler but they all still exist under recent.

Tony

David Gifford

unread,
Jan 29, 2020, 7:02:41 PM1/29/20
to TiddlyWiki
Yes, that is the behavior I was trying to describe.

The default new-journal-here button, which I cloned, is not amenable to changes (in this case adding what needs to go in the text field) with this happening. The offending tiddler is $:/.giffmex/ViewToolbar/new-note-here-datetime.

Though perhaps $:/.giffmex/actions/new-journal has something to do? I doubt it, though, because the similar button I have in page controls works fine.

I updated TiddlyBlink and added a changelog, accessible from the default tiddler.

Mark S.

unread,
Jan 29, 2020, 7:24:51 PM1/29/20
to TiddlyWiki
This seems (to me) to be an actual bug. The good news is that you can easily fix it. The bad news is, that you're not going to like it.

If the button to make a new tiddler here is exposed, then it gets stuck on the timestamp when the tiddler was rendered. If the button is hidden, then it will advance the way you want it.

You can hide it by creating :

$:/config/ViewToolbarButtons/Visibility/$:/.giffmex/ViewToolbar/new-note-here-datetime


and setting the text to "hide".

Perhaps someone can run down the code to determine why it happens. The same thing happens in the code for the new-journal-here button at TiddlyWiki.com, so it's not something you introduced.

Have fun

David Gifford

unread,
Jan 29, 2020, 7:31:24 PM1/29/20
to TiddlyWiki
Why you are right! Right about the bug, right about it being easy to fix, and right about it being a fix that I would not like for TiddlyBlink.

Hope someone can figure it out.

Eric Shulman

unread,
Jan 29, 2020, 7:54:04 PM1/29/20
to TiddlyWiki
On Wednesday, January 29, 2020 at 4:02:41 PM UTC-8, David Gifford wrote:
The default new-journal-here button, which I cloned, is not amenable to changes (in this case adding what needs to go in the text field) with this happening. The offending tiddler is $:/.giffmex/ViewToolbar/new-note-here-datetime. 

If a button's actions are defined "inline" within the button definition (as you have done), then they are parsed when the button is rendered.

This results in an unchanging timestamp for the journal title, which causes the old journal to be overwritten each time the button is clicked.

However...

If the button's actions are defined in a separate macro that is invoked via the actions=<<macroname>> syntax,
then parsing of the action code is deferred until the button is actually pressed, and is **re-calculated each time the button is pressed**

This code works as you intend:
\whitespace trim

\define journalButtonActions()
<$action-sendmessage $message="tm-new-tiddler" title=<<now """$(journalTitleTemplate)$""">> text="""[[$(tid)$]]""" />
\end

\define journalButtonTags()
[[$(currentTiddlerTag)$]] $(journalTags)$
\end

\define journalButton()
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}}
   aria
-label={{$:/language/Buttons/NewJournalHere/Caption}}
   
class=<<tv-config-toolbar-class>>
   actions
=<<journalButtonActions>>>
   
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
     
{{$:/core/images/timestamp-on}}
   
</$list>
   <$list filter="[<tv-config-toolbar-text>match[yes]]">
      <span class="tc-btn-text">
         <$text text={{$:/
language/Buttons/NewJournalHere/Caption}}/>
     
</span>
   </
$list>
</$button>
\end

<$set name="journalTitleTemplate" value={{$:/
config/NewJournal/Title}}>
<$set name="tid" value=<<currentTiddler>>>
<<journalButton>>
</$set>
</
$set>



enjoy,
-e

David Gifford

unread,
Jan 29, 2020, 8:04:28 PM1/29/20
to TiddlyWiki
Thank you, Eric!

That worked great, and I just updated it. https://giffmex.org/experiments/roamwiki.experiment.html

Dave
Reply all
Reply to author
Forward
0 new messages