*Mat*, where would you put your code so that it was available while editing
a tiddler?
On Thursday, June 3, 2021 at 1:04:09 PM UTC-4 Mat wrote:
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/2b9f921a-d7a7-4c3f-9f7e-791b8623f273n%40googlegroups.com.