Nice macro Mohammad! Works perfectly for a few random tests I made. 

On Sunday, April 7, 2019 at 3:31:06 AM UTC+7, Mohammad wrote:
>
> Hi Josiah!
>  This new version works ALSO with empty tiddlers
>
> \define append-text(tidTitle, text:"", btnLabel:"Append Text", sep:"<br>")
> <$button> $btnLabel$
> <$list variable="newText" 
> filter="[<__tidTitle__>get[text]addsuffix<__sep__>addsuffix<__text__>]" 
> emptyMessage="""<$action-setfield $tiddler=<<__tidTitle__>> 
> text=<<__text__>> />""" >
> <$action-setfield $tiddler=<<__tidTitle__>> text=<<newText>> />
> </$list>
> </$button>
> \end
>
>
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/94475ca2-c133-4581-b98c-cc42aea9650a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to