Modifiying multiple tiddler fields

87 views
Skip to first unread message

Shawn Murdock

unread,
Feb 5, 2018, 2:28:49 PM2/5/18
to TiddlyWiki
First off, I would like to thank all the devs that work on this project. Tiddlywiki is the best thing I have come across in a while. Hopefully someday I will understand the mechanics enough to help with it.

But, at this point I have a question. I have one tiddywiki which I am using as notes / database (of sorts) for my plant collection. All of my individual plant tiddlers have several fields. I would like to modify the same field on all of the plant tiddlers; is there an easy way to do it without having to edit each one by hand?

To clarify: say I have 200 plant tiddlers each with a field for the genus of the plant. I want to change all of them from "somegenusA" to "somegenusB". How can I bulk change a number of tiddlers easily? Is there a way in tiddlywiki or do I have to edit the actual file?

Thanks for the help.

Mark S.

unread,
Feb 5, 2018, 2:44:45 PM2/5/18
to TiddlyWiki
I believe something like this will do the trick:

<$button>Genus Swap
<$list filter="[field:genus[someA]]">
<$action-setfield $field="genus" $value="someB"/>
</$list>
</$button>

Absolutely make a backup of your TW file before trying this. There's always the possibility of something going off the rails when doing bulk changes like this.

-- Mark

Shawn Murdock

unread,
Feb 5, 2018, 4:03:20 PM2/5/18
to TiddlyWiki
Thanks Mark, Thanks a lot. I figure there had to be a way without opening in something like notepad++. Now that I see it, it seems very simple. I guess I have a hard time with the docs.
Again, thank you.

TonyM

unread,
Feb 5, 2018, 4:26:49 PM2/5/18
to TiddlyWiki
Mark,

You are very Good at these almost one liner solutions.

Do consider contributing menus and menu items into the MyMenus solution I just published.

Regards
Tony

Mat

unread,
Feb 5, 2018, 11:29:01 PM2/5/18
to TiddlyWiki
Shawn Murdock wrote:
I would like to modify the same field on all of the plant tiddlers; is there an easy way to do it without having to edit each one by hand?


<:-)
Reply all
Reply to author
Forward
0 new messages