mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
15 lines
740 B
Plaintext
15 lines
740 B
Plaintext
|
title: $:/core/ui/Actions/new-journal
|
||
|
tags: $:/tags/Actions
|
||
|
description: create a new journal tiddler
|
||
|
|
||
|
<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/Tags}} journalText={{$:/config/NewJournal/Text}}>
|
||
|
<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>""">
|
||
|
<$reveal type="nomatch" state=<<journalTitle>> text="">
|
||
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalTags>> text={{{ [<journalTitle>get[]] }}}/>
|
||
|
</$reveal>
|
||
|
<$reveal type="match" state=<<journalTitle>> text="">
|
||
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalTags>> text=<<journalText>>/>
|
||
|
</$reveal>
|
||
|
</$wikify>
|
||
|
</$vars>
|