"Title of new journal tiddlers" not updating when set to "YYYY0MM0DD0hh0mm0ss"

106 views
Skip to first unread message

si

unread,
Sep 2, 2019, 4:00:45 PM9/2/19
to tiddl...@googlegroups.com
I am looking to have a button create tiddlers with an automatically assigned unique title. My first instinct was to use journal tiddlers.

I have set the "Title of new journal tiddlers" setting to "YYYY0MM0DD0hh0mm0ss". I have found that when I add a new journal tiddler I just end up editing the previous one as the time is not updating.

For example I created a journal tiddler that was named "20190902205809". When I tried to create another one it was still named "20190902205809", as though time had not moved forward, so I was just editing the previous journal tiddler.

This happens both in the browser and in TiddlyDesktop.

If anyone has a solution to this I would massively appreciate the help.

Thank you

TonyM

unread,
Sep 2, 2019, 11:25:53 PM9/2/19
to TiddlyWiki
Si,

First try this YYYY0MM0DD0hh0mm0ss for your Journal tiddler, This is working for me. Try on tiddlywiki.com
Perhaps something is interfering with yours.

I notice for this in one wiki I need to reload the wiki to refresh the date used for Journal tiddlers. This is a feature because Journals tend to be daily tiddlers as is be default.
Rather than use the new Journal button you may be better served creating your own new tiddler button that meets your needs.

As I understand it The tiddler in which the New Journal obtains the date from the now macro using the format in $:/config/NewJournal/Title needs to refresh to capture the next time/date. 

Research shows 
$:/core/ui/Buttons/new-journal (uses $:/core/ui/Actions/new-journal) 
and $:/core/ui/Buttons/new-journal-here creates the title from now in itself.

Regards
Tony

On Tuesday, September 3, 2019 at 6:00:45 AM UTC+10, si wrote:
I am looking to have a button create tiddlers with an automatically assigned unique title. My first instinct was to use journal tiddlers.

I have set the "Title of new journal tiddlers" setting to "YYYYMMDDhhmmss". I have found that when I add a new journal tiddler I just end up editing the previous one as the time is not updating.

si

unread,
Sep 2, 2019, 11:51:16 PM9/2/19
to TiddlyWiki
Hi Tony thanks for your response.

Yeah, this explains my problem.

From tiddlywiki.com regarding the "now" macro:

"The value doesn't update automatically, like a ticking clock. It updates whenever the macro call is rendered, such as when the containing tiddler's display needs to be refreshed for some other reason."


Since is not convenient to refresh my wiki every time, do you have any idea of how I could make a button that creates a tiddler with an automatically generated unique title? It does not need to include the date, this was just my method of making the title unique.

Thanks again, si

TonyM

unread,
Sep 3, 2019, 12:50:55 AM9/3/19
to TiddlyWiki
So

If you are going to make a button from scratch what would you prefer as the title ?

Do you want them hidden unless you make a custom list?

you can can be the new tiddler titles in settings and new if exists appends a new number.

TonyM

unread,
Sep 3, 2019, 12:53:44 AM9/3/19
to TiddlyWiki
How do you want to list or search them?

Mark S.

unread,
Sep 3, 2019, 10:03:51 AM9/3/19
to TiddlyWiki
When I try it on TiddlyWiki.com it works as expected. Every time I click new journal, I get a brand new journal.

Perhaps it relates to your browser or some other configuration. It might help to know OS, browser, TW version.

Good luck

si

unread,
Sep 3, 2019, 10:30:06 AM9/3/19
to TiddlyWiki
Mark,

I just checked and I was still using version 5.1.17. I upgraded to the most recent and now it works: every time I click new journal, I get a new journal with the updated time.

Thank you very much.


Tony,

My specific use case is that I want to add quotes from a book as separate tiddlers, without having to come up with new titles for each of them.

For example I would want a button that creates a tiddler "The Hobbit/Quote 1", then "The Hobbit/Quote 2" etc.

How could I get the following to append a new number each time, in the same way as the new tiddler button?

\define tags_value() [[$(currentTiddler)$]]

<$button>
<$wikify name=title_value text="{{!!title}}/Quote" >
<$action-sendmessage $message="tm-new-tiddler" title=<<title_value>> tags=<<tags_value>> />
New Quote
</
$wikify>
</$button>

Thanks for your help, si

Jeremy Ruston

unread,
Sep 3, 2019, 1:14:39 PM9/3/19
to tiddl...@googlegroups.com
Just to confirm, the issue "Creating a New Journal Tiddler deletes existing Journal Tiddler when `$:/config/NewJournal/Text` is non empty" was fixed in Dec 2017:


Best wishes

Jeremy.





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6282f1cd-3be4-4c27-afe7-3a5b9d077cc4%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages