kookma / TW-Commander

A tiddler toolkit for Tiddlywiki 5. Batch operations on bulk of tiddlers. Create, delete, add fields, tags, search and replace and inspect tiddlers.
https://kookma.github.io/TW-Commander/
49 stars 8 forks source link

Set field value to the value of another field #19

Closed jbardi closed 1 year ago

jbardi commented 3 years ago

I'm not sure if I may have missed this ability, but as far as I can tell, you can only replace hard coded text in a field. I have the need to set the value of one field to the value of another field for a few hundred tiddlers. Would be nice to have the option for 2 dropdown menus, one as source field and the other for target field.

kookma commented 1 year ago

There are two solutions

  1. Destructive method - use the rename field, if both fields are in the same tiddler and you need the new one
  2. Limited solution If all tiddlers field say fieldx shall get the value of tiddler y - fieldy then why not manually put the value in fieldy into Set Field Value inbutbox

NOTE: As one may need to put wikitext into fields, so Commander prefers to set values as literal and not transclude them.

I close this issue; I can propose some wikitext to do this. I may recommend to raise your question in Talk forum to see if there is any general solution for this.