Date In "Title of new tiddlers" Setting

179 views
Skip to first unread message

Darth Mole

unread,
Jun 29, 2021, 4:37:26 PM6/29/21
to TiddlyWiki
Is there a way to add a formatted date to the "Title of new tiddlers" field like you can in the "Title of new journal tiddlers" field?

I'm trying to add MM/DD - to the front of each new tiddler based on how I am using it. I can always just delete it if I don't need the MM/DD - in the title but prefer to have it if I did. 

However, it doesn't seem that the field accepts any time of code so I'm not sure if it is even possible. 

Thanks!
DM

Soren Bjornstad

unread,
Jun 29, 2021, 5:27:56 PM6/29/21
to TiddlyWiki
$:/core/ui/Actions/new-journal contains:

<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>""">
[...]
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<get-tags>> text=<<journalText>>/>

$:/core/ui/Actions/new-tiddler contains no such wikify, just:

<$action-sendmessage $message="tm-new-tiddler" tags=<<get-tags>>/>

I haven't tried it, but I would think it would be relatively straightforward to override this tiddler and add an appropriate wikify widget and a title parameter to $action-sendmessage.

TW Tones

unread,
Jun 29, 2021, 9:49:21 PM6/29/21
to TiddlyWiki
DM
Of course in  Title of new journal tiddlers you could put  0MM/0DD
Then use the new Journal here button on a tiddler then type the rest of the name? The advantage being the new tiddler is tagged with the current one.

Personally I have altered the new Journal and New Journal here button to set a journal-date field so it is independent from the title. Just ask if you want them!

For future reference you can use the now macro to format a date anyway you want, then use this in a new tiddler or new Journal button  to set the name. There is a little trick concatenating strings to create titles but we can help you there.  

Regards
Tones
Reply all
Reply to author
Forward
0 new messages