Bulk export with commander with no export tag?

hi all (but especially @Mohammad ),
is there a way to use commander to export multiple tiddlers in a json format without an export tag?
even with a blank field the tiddlers are tagged exported.
image

i would like them to stay clean as other users will be importing them and i don’t want the tags to change.

thanks,
scribs

I will check and let you now!

thank you! i didn’t realize this was unintended behavior, so here’s steps to replicate:

  1. install commander on a blank tw file, version 5.3.6 (as that’s what i’m using, i have not tested on other versions).
  2. make a few tiddlers and do not give them any tags.
  3. use commander to bulk-export the created tiddlers, and leave the “export tags” field blank.
  4. import the tiddlers back into that wiki or any other.

The newly imported tiddlers will be tagged “exported” even though no tag was specified.

  1. Open $:/plugins/kookma/commander/tiddler/macros/export
  2. Look at the
\define add-export-tag()
<$list filter=<<searchfilter>> >
<$fieldmangler>
<$list filter="[enlist{$(exportTagTid)$}]~[[exported]]" variable="exportTag" ><!-- add all export tags-->
<$action-sendmessage $message="tm-add-tag" $param=<<exportTag>> />
</$list>
<$action-sendmessage $message="tm-remove-tag" $param=<<workingTag>> />
</$fieldmangler>
</$list>
\end

Note to the ~[[exported]].

I f you like to not add any tag, remove the ~[[exported]] from the filter.

  • The reason I used this to be able to recognize the exported tiddlers on the target wiki!
  • You may know, the export feature is avialable in $:/AdvancedSearch → Filter. That is why I did not extended this part in Commander, as it is a duplicate of $:/AdvancedSearch → Filter

By the way I will add tickets for next version.

  1. keep modified date unchanged when workingTag is used
  2. add a tick to turn off export tags!
1 Like

thank you!!

i did not know that! though i do find commander’s interface easier to use for selective operations etc. so i’d prefer to use it anyways :slight_smile: