Seems to work: \define t() [[$(currentTiddler)$]] OhterTAG
<$button> <$action-createtiddler $basetitle="MyBase" tags=<<t>> /> x </$button> <:-) On Thursday, June 3, 2021 at 5:53:39 PM UTC+2 Ed Heil wrote: > Hello, > > I've been trying to do something that seems like it should be simple but > maybe isn't. > > I'm in a tiddler called "Three Word Title." > > I wish to add a tiddler tagged with its name and one other tag, in > response to hitting a button. > > I would think I'd use something like: > > <$action-createtiddler $base="MyBase" tags={{{ [<currentTiddler>] > [[OtherTag]] +[join[ ]] }} /> > > But of course that won't work, it will give it the tags "Three" "Word" > "Title" and "OtherTag." > > Is there a bulletproof way to turn a list of tiddlers (returned by a > filter) into a list with proper [[]] so it's suitable for use in a tags > field? > > I could do this by creating the tiddler first, then saving the title, then > sending a tm-add-tag message, but at that point I need a FieldManglerWidget > and it just seems like this ought to be easier. > > I thought that maybe enlist or enlist-input should do the job but they > don't seem to. > > I guess another way of summing up my problem would be that I want this: > > <$vars barBaz="bar baz"> > "<$text text={{{ [[foo]] [<barBaz>] +[what operator do I want here?[]] > }}}/>" > </$vars> > > to somehow produce > > "[[foo]] [[bar baz]]" > > > -- 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/8821d8e8-ced7-4742-b2ff-6d65818725e1n%40googlegroups.com.