mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-10 20:09:57 +00:00
eaf8558595
* Let PageControls buttons use v5.3.2 syntax * Rewrite buttons and actions * Omit whitespace & use function to avoid duplicating * Omit whitespace in conditional syntax * Define tf.get-tags function to avoid duplicated text substitution * Rewrite advanced search button * Add space in join operator * Rewrite buttons in plugins * Remove tf prefix in new-journal.tid * Remove tf prefix in new-tiddler.tid
17 lines
870 B
Plaintext
17 lines
870 B
Plaintext
title: $:/core/ui/Actions/new-journal
|
|
tags: $:/tags/Actions
|
|
description: create a new journal tiddler
|
|
|
|
\whitespace trim
|
|
\function get-tags() [<textFieldTags>] [<tagsFieldTags>] +[join[ ]]
|
|
<$let journalTitleTemplate={{$:/config/NewJournal/Title}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}>
|
|
<$wikify name="journalTitle" text="<$transclude $variable='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>
|
|
</$let>
|