Thanks a lot. I am actually trying to create a duplicate of “New Journal” 
button, which I call “New Highlight”. Everything now works including the 
keyboard shortcut.

What does not work is that I want the “New Highlight” tiddler to have a tag ✨ 
highlight. Notice the space.

The code for the action is this

<$vars journalTitleTemplate={{$:/talha131/config/NewHighlight/Title}} 
journalTags={{$:/talha131/config/NewHighlight/Tags}} 
journalText={{$:/talha131/config/NewHighlight/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>

As you can tell it is same as new-journal action.

It reads the tag from {{$:/talha131/config/NewHighlight/Tags}} into 
journalTags variable.

This variable is used in this way tags=<<journalTags>>. But this syntax 
does not work for a tag that has spaces in it.

You can try this issue, by overwriting your $:/config/NewJournal/Tags 
tiddler and adding a tag that has spaces in it.
​

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4b714e5e-4712-45b5-8265-16ed6f02a1f9o%40googlegroups.com.

Reply via email to