[TW5 5.1.8-prerelease] Find and replace field contents

229 views
Skip to first unread message

Jed Carty

unread,
Feb 22, 2015, 4:54:23 PM2/22/15
to tiddl...@googlegroups.com
Since this has come up on the group here a few times in the past and it is something that I wanted, I am going to post this. Currently this only works in the prerelease, but it should work in any future versions.

With the new version (5.1.8, currently the prerelease) you can trigger action widgets inside lists which lets you do some very useful things that weren't possible before.

All the normal warnings apply here. You can replace the values stored in or names of all fields of all tiddlers in your wiki using this, so make sure you are careful and backup your work.

The two examples I have made are:

Search and replace field contents - this searches the contents of all fields (you can toggle if the text, tags, modified, etc. fields are searched) and allows you to replace the contents with a new value on either all instances of that value or in a selected list of tiddlers/fields.
Search and replace field names - this searches all field names and lets you rename the fields, once again either all fields with the listed name or just a selection of them.

the biggest part of these things that is new in the upcoming release is that you can replace everything on the list with a single button press instead of having to press a button for each field changed. The being able to get the end result isn't new, but this way is more convenient.

Here is a demo, you only need to import the 'Search and replace field names' and the 'Search and replace field contents' tiddlers for it to work. Each one will create a few system tiddlers to track the state when you use it, but nothing else is needed.

http://ooktech.com/jed/ExampleWikis/Version518Fun/

Tobias Beer

unread,
Mar 1, 2015, 3:29:22 PM3/1/15
to tiddl...@googlegroups.com
Hi Jed,

Something very useful to explore.
I hope we'll soon see a next-gen TiddlerTweaker for TW5.

When I look at...


... I see a field named "1". That this works seems to be a bug as such a fieldname does not appear to conform to permissible html attribute names.

Best wishes, Tobias.

Matthew Petty

unread,
Apr 26, 2016, 7:07:38 AM4/26/16
to TiddlyWiki
In this thread: https://groups.google.com/d/topic/tiddlywiki/S0CYsynRi7E/discussion
...i am trying to figure out setting a field for a list of tiddlers, incrementing the value of the field each time. The issue seems to be triggering an action in a list. If I could trigger an action in a list, I could trigger an increment action, or "calc".

Could you help? It seems this is related to your work her.

Best regards,
Matthew Petty

+971 56 622 1318
Reply all
Reply to author
Forward
0 new messages