Hi Stefano,
 This is Mohammad the Commander author!

Here is for you, a macro to add many tags you like to a list of tiddlers as 
batch operation. 




\define add-new-tag-bulk(filter, newTags)
<$list filter="$filter$" >
<$list filter="[enlist<__newTags__>]" variable="itemTag">
<$fieldmangler>
<$action-sendmessage $message="tm-add-tag" $param=<<itemTag>> />
</$fieldmangler>
</$list></$list>
\end




To test, create a tiddler in Tiddlywiki.com
name it as you like and tagged it as $:/tags/Macro

In another tiddler test it as below

<$button> do
<$macrocall $name="add-new-tag-bulk"
filter="[tag[About]]"
newTags="bb cc dd [[mytag with space]]"

/>
</$button>

This changes the tags of all tiddlers tagged with About to 
bb, cc, dd and "tag with space".

Hopefully these features will be available in Commander.


Cheers
Mohammad


On Monday, February 18, 2019 at 1:10:28 AM UTC+3:30, stefano franchi wrote:
>
> Hi Lazlo,
>
> I was indeed looking at the Commander code, but I am still such a newbie 
> with TW that I don't know how to use it. In particular, this bit seems to 
> be all I need:
>
> \define add-new-tag-bulk(newTag)
> <$list filter={{$:/temp/commander}}>
> <$fieldmangler>
> <$action-sendmessage $message="tm-add-tag" $param=<<__newTag__>> />
> </$fieldmangler>
> </$list>
> \end
>
> Not completely sure how it works yet, but working on it...
>
>
> Cheers,
>
> S.
>
>
> On Sun, Feb 17, 2019 at 3:22 PM bimlas <[email protected] <javascript:>> 
> wrote:
>
>> Stefano,
>>
>> TW-Commander worth a try as well: https://github.com/kookma/TW-Commander
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/360fac05-f3c4-4151-8af8-077841eb77a0%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/360fac05-f3c4-4151-8af8-077841eb77a0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> __________________________________________________
> Stefano Franchi
>
> [email protected] <javascript:>
> http://stefano.cleinias.org
>

-- 
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/732fb8f4-b66c-4ba6-8b3e-d4dd50a19b9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to