What is the best approach for renaming a field that is used by multiple tiddlers?

101 views
Skip to first unread message

si

unread,
Aug 19, 2020, 1:45:59 PM8/19/20
to TiddlyWiki
This has probably been asked before but I can't find any info.

For example changing the field "original-field-name" to "new-field-name" in every tiddler, without changing any of the values.

Thanks for your help!

Mark S.

unread,
Aug 19, 2020, 2:21:53 PM8/19/20
to TiddlyWiki
You might try TW-commander:

TW Tones

unread,
Aug 19, 2020, 6:59:47 PM8/19/20
to TiddlyWiki
Si,

I think it fair to say for each occurrence of filedname1 you create fieldname2 and populate it with the value of fieldname1 then delete fieldname1

<$action-setfield filename2={{!!fieldname1}}/>
<$action-deletefield fieldname1/>

The above can go in a list that locates tiddlers containing fieldname1 and wrapped by a button to trigger the action(s) on each tiddler.

Regards
Tony

si

unread,
Aug 22, 2020, 9:22:52 AM8/22/20
to TiddlyWiki
Thanks a lot to you both!
Reply all
Reply to author
Forward
0 new messages