2018-11-07 12:59:21 +00:00
|
|
|
title: $:/core/ui/Actions/new-journal
|
|
|
|
tags: $:/tags/Actions
|
|
|
|
description: create a new journal tiddler
|
|
|
|
|
2020-11-17 19:08:14 +00:00
|
|
|
\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$
|
2022-04-16 16:40:27 +00:00
|
|
|
\whitespace trim
|
2020-11-17 19:08:14 +00:00
|
|
|
<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}>
|
2022-04-16 16:40:27 +00:00
|
|
|
<$wikify name="journalTitle" text="<$macrocall $name='now' format=<<journalTitleTemplate>>/>">
|
2018-11-07 12:59:21 +00:00
|
|
|
<$reveal type="nomatch" state=<<journalTitle>> text="">
|
2020-11-17 19:08:14 +00:00
|
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<get-tags>> text={{{ [<journalTitle>get[]] }}}/>
|
2018-11-07 12:59:21 +00:00
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<journalTitle>> text="">
|
2020-11-17 19:08:14 +00:00
|
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<get-tags>> text=<<journalText>>/>
|
2018-11-07 12:59:21 +00:00
|
|
|
</$reveal>
|
|
|
|
</$wikify>
|
|
|
|
</$vars>
|