Use Relink to rename similar tiddlers

166 views
Skip to first unread message

kebi

unread,
Aug 18, 2020, 7:56:24 PM8/18/20
to TiddlyWiki
Hello guys,

My wiki has the following tiddlers

Title
Title/1
Title/2

When I rename "Title" I also want the other tiddlers to be renamed (before the " / " character).
Does anyone know if this is possible with Relink?

TW Tones

unread,
Aug 18, 2020, 8:30:21 PM8/18/20
to TiddlyWiki
Kebi,

Unlikely because these are separate tiddlers, that is why subtiddlers are often tagged with the "master" tiddler, so that renaming the main tiddler will update the tag in all tiddlers. Sometimes subtiddlers are named in a list field to keep them links with the master see "Streams"

When using a naming standard like tiddlername/subtiddler you need to provide the methods to rename subtiddlers tiddlers.
It can be done with macros.

Regards
Tones

kebi

unread,
Aug 18, 2020, 8:43:19 PM8/18/20
to TiddlyWiki
I'm using Streams and noticed that when renaming the stream-root the fields of its nodes get updated but not its title.

When using a naming standard like tiddlername/subtiddler you need to provide the methods to rename subtiddlers tiddlers.
It can be done with macros.

I have no idea how to do something like this, any hints?

- kebi

TW Tones

unread,
Aug 18, 2020, 9:37:46 PM8/18/20
to TiddlyWiki
Kebi,

I will think about it and see if I can find an easy to communicate solution.
  • How were the subtiddlers created in the first place?
Perhaps you/we build the rename tool, rather than manually rename the current tiddler you have a custom rename, that also actively renames the subtiddlers? 

Regards
Tony

Birthe C

unread,
Aug 18, 2020, 10:02:20 PM8/18/20
to TiddlyWiki
TW Tones,

@Kebi is using streams. How will that work if you rename the titles?

Birthe


kebi

unread,
Aug 18, 2020, 10:46:47 PM8/18/20
to tiddl...@googlegroups.com
When a subtiddler (or node) gets generated with Streams its title follows this pattern
<<stream-root-title>>/<<now "[UTC]YYYY0MM0DD0hh0mm0ssXXX">>

When renaming the stream-root we should filter all the subtiddlers (with prefix?) and rename those as well, but I personally don't know how to do it.

-kebi

TW Tones

unread,
Aug 18, 2020, 11:05:55 PM8/18/20
to TiddlyWiki
Birthe/kebi

Thanks for pointing that out. Streams will need further consideration, you may not be able to use a general tool. 

Certainly you can reconfigure streams to use alternate naming standards, the default creates unique tiddlers and the are listed in the root tiddler. 
The root tiddler can be renamed without harm but the subtiddlers will remain as at when they were created. 
Arguably there is no need to rename them.

However if you wish to you will need to rename the tiddlers, if you do so manually you can rely on the re-link macro to update the list field on the root tiddler.
Perhaps the field stream-list can be added to the relink macros fields?

I have not tested to see if relink works in batch utilities.

I will keep looking.

Tones

Birthe C

unread,
Aug 18, 2020, 11:26:43 PM8/18/20
to TiddlyWiki
TW Tones and Kebi,


Birthe


kebi

unread,
Aug 19, 2020, 1:38:49 AM8/19/20
to tiddl...@googlegroups.com
Since I don't see this tiddler in the Stream's roadmap anymore, I hope Saq is still planning to implement this feature.

Saq Imtiaz

unread,
Aug 19, 2020, 2:51:26 AM8/19/20
to TiddlyWiki
That Tiddler refers to handling the updating of the stream-list field in the parent when a child node is manually renamed.
This is already implemented using Relink, therefore you won't find this on the Roadmap.

As Tony mentions, from a Streams point of view there is no need to rename child nodes when the parent is updated.

Mat

unread,
Aug 19, 2020, 3:01:44 AM8/19/20
to TiddlyWiki
If you only want the occasional correction, the way to do it is to open your wiki in an editor e.g Notepad++ and do a search/replace. Obviously the usual caveats; careful, backup.

<:-)

Flibbles

unread,
Dec 15, 2020, 7:38:29 PM12/15/20
to TiddlyWiki
I am here to say that Relink can now handle this very case.

Introducing Relink-Titles

It's a supplemental Relink plugin that allows for title updating of any directory-nested tiddlers. And also any custom filter rules, or rules introduced by third-party plugins.

I'm only 4 months late!

Joshua Fontany

unread,
Dec 15, 2020, 8:35:21 PM12/15/20
to TiddlyWiki
This will work really really well with the new filesystem code. Behind the scenes when you "rename" a tiddler, the old one is deleted from the "store" and a new one is created with the new title field and then all other field copied over. Thanks!

Best,
Joshua F

kebi

unread,
Dec 19, 2020, 9:02:53 AM12/19/20
to TiddlyWiki
@Flibbles thank you so much for making a new addon just for this particular case! 
Reply all
Reply to author
Forward
0 new messages