mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-08 19:09:57 +00:00
eb0b2a8d8e
* Trim Saga: Advanced Search and actions * Split up AdvancedSearch macros to be readable
17 lines
854 B
Plaintext
17 lines
854 B
Plaintext
title: $:/core/ui/Actions/new-journal
|
|
tags: $:/tags/Actions
|
|
description: create a new journal tiddler
|
|
|
|
\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$
|
|
\whitespace trim
|
|
<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!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=<<get-tags>> text={{{ [<journalTitle>get[]] }}}/>
|
|
</$reveal>
|
|
<$reveal type="match" state=<<journalTitle>> text="">
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<get-tags>> text=<<journalText>>/>
|
|
</$reveal>
|
|
</$wikify>
|
|
</$vars>
|