Cascade renaming tiddlers

53 views
Skip to first unread message

user4815162342

unread,
Apr 14, 2010, 2:21:12 PM4/14/10
to TiddlyWiki
I'm looking for a way to automatically fix links when a tiddler is
renamed.

For example, if I have:

tiddler: Foo
content: This links to [[Bar]].

tiddler: Bar
content: Lorem ipsum.

If I change the title of the Bar tiddler to BarBar, I'd like to
automatically have the text of Foo change to "This links to
[[BarBar]]".

Is there an existing plugin or simple trick to get this to work?

Måns

unread,
Apr 14, 2010, 5:57:14 PM4/14/10
to TiddlyWiki
Hi user4815162342

> I'm looking for a way to automatically fix links when a tiddler is
> renamed.

If you use minitag or tagglytagging, which do the same thing as "This
links to TiddlerName" - then you could use RenameTagsPlugin
http://mptw.tiddlyspot.com/#RenameTagsPlugin to create the desired
effect of dynamically changing the link...

Regards Måns Mårtensson

user4815162342

unread,
Apr 14, 2010, 7:08:49 PM4/14/10
to TiddlyWiki
Thanks for your response.

I couldn't find anything on minitag. I looked up TagglyTagging[1], it
looks like it has some very interesting ways to use tags, but I'm not
sure how using tags would help in my situation.

Basically, I have text content, which contains links to other tiddlers
embedded in the content, for example a wiki article with embedded
links pointing to other articles. These aren't just "this links
to...", their position and order in the content is important. Is there
something I'm missing about TagglyTagging that would let me use it in
this case?

[1] My reference was http://mptw.tiddlyspot.com/#TagglyTagging

On Apr 14, 4:57 pm, Måns <humam...@gmail.com> wrote:
> Hi user4815162342
>
> > I'm looking for a way to automatically fix links when a tiddler is
> > renamed.
>
> If you use minitag or tagglytagging, which do the same thing as "This

> links to TiddlerName" - then you could use RenameTagsPluginhttp://mptw.tiddlyspot.com/#RenameTagsPluginto create the desired

Måns

unread,
Apr 14, 2010, 7:29:41 PM4/14/10
to TiddlyWiki
Hi again

> I couldn't find anything on minitag.

Sorry I should have called it QuickOpenTagPlugin
http://mptw.tiddlyspot.com/#QuickOpenTagPlugin
Its used in mptw, in the ViewTemplate as a macro called: minitag - my
mistake..


> Basically, I have text content, which contains links to other tiddlers
> embedded in the content, for example a wiki article with embedded
> links pointing to other articles. These aren't just "this links
> to...", their position and order in the content is important.

Have a look at AutoWeavePlugin - http://weave.tiddlyspot.com/ -
This thread, might be usefull too - cmari presents a script for
retrieving dead links in tiddlers - :
http://groups.google.dk/group/tiddlywiki/browse_thread/thread/32048d2d33e542ce/dff0b73539664b16?hl=en&lnk=gst&q=auto+link#dff0b73539664b16

Regards Måns Mårtensson

Anthony Muscio

unread,
Apr 14, 2010, 8:19:19 PM4/14/10
to tiddl...@googlegroups.com
An idea that may get you towards your objective.

Before renaming a tiddler that is referenced in other tiddlers use the menu option "References" to see all the tiddlers that are using it. As we know tiddlers are unique, thus the string defined by the tiddlername (excluding those proceeded by ~ "non-wiki escape) in the reference tiddlers are what we need to change.

So if you could use the references method to get a list of tiddlers then use a search and replace on those tiddlers to change them to the new name you would have what you want.

Perhaps a search and replace on the whole tiddlywiki would also work.

A quick hack may be to open the tiddlywiki in a text editor and replace all occurrences of your tiddler name with the new tiddler name. this should catch all names, references etc... but this would be time consuming if you want to rename lots of tiddlers. Caution this may have a problem I cant see.

Regards Tony


TonyM

If you have not found an easy way to do it with TiddlyWiki, you have missed something.
www.tiddlywiki.com




Regards Måns Mårtensson

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.


user4815162342

unread,
Apr 15, 2010, 10:32:58 AM4/15/10
to TiddlyWiki
Thanks for your suggestions. So apparently there are no known plugins
that do this automatically?

Wait, so this has been discussed before... I guess I should have done
a more thorough search before asking.

There's this thread from 2007.
http://groups.google.com/group/tiddlywiki/browse_frm/thread/a0b8c9000ec7f00d/181a4694157e22aa#181a4694157e22aa

Does anyone know the status of the modified version of
RenameTagsPlugin mentioned by Simon Baird in that thread? Have the
problems with it mentioned in the thread been fixed?

On Apr 14, 7:19 pm, Anthony Muscio <anthony.mus...@gmail.com> wrote:
> An idea that may get you towards your objective.
>
> Before renaming a tiddler that is referenced in other tiddlers use the menu
> option "References" to see all the tiddlers that are using it. As we know
> tiddlers are unique, thus the string defined by the tiddlername (excluding
> those proceeded by ~ "non-wiki escape) in the reference tiddlers are what we
> need to change.
>
> So if you could use the references method to get a list of tiddlers then use
> a search and replace on those tiddlers to change them to the new name you
> would have what you want.
>
> Perhaps a search and replace on the whole tiddlywiki would also work.
>
> A quick hack may be to open the tiddlywiki in a text editor and replace all
> occurrences of your tiddler name with the new tiddler name. this should
> catch all names, references etc... but this would be time consuming if you
> want to rename lots of tiddlers. Caution this may have a problem I cant see.
>
> Regards Tony
>
> TonyM
>
> If you have not found an easy way to do it with TiddlyWiki, you have missed
> something.www.tiddlywiki.com
>

> On Thu, Apr 15, 2010 at 09:29, Måns <humam...@gmail.com> wrote:
> > Hi again
>
> > > I couldn't find anything on minitag.
> > Sorry I should have called it QuickOpenTagPlugin
> >http://mptw.tiddlyspot.com/#QuickOpenTagPlugin
> > Its used in mptw, in the ViewTemplate as a macro called: minitag - my
> > mistake..
> > > Basically, I have text content, which contains links to other tiddlers
> > > embedded in the content, for example a wiki article with embedded
> > > links pointing to other articles. These aren't just "this links
> > > to...", their position and order in the content is important.

> > Have a look at AutoWeavePlugin -http://weave.tiddlyspot.com/  -


> > This thread, might be usefull too - cmari presents a script for
> > retrieving dead links in tiddlers - :
>

> >http://groups.google.dk/group/tiddlywiki/browse_thread/thread/32048d2...


>
> > Regards Måns Mårtensson
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "TiddlyWiki" group.
> > To post to this group, send email to tiddl...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > tiddlywiki+...@googlegroups.com<tiddlywiki%2Bunsu...@googlegroups.com>

PMario

unread,
Apr 15, 2010, 1:16:07 PM4/15/10
to TiddlyWiki
Hi,

Don't know any plugin, that does what you want, but the following
links may be of interest for you.

have fun
Mario

3rd post from whatever
http://groups.google.com/group/tiddlywiki/browse_thread/thread/7204f42e2afbf5e9/0931a56e78970d53
and
http://tiddlywiki.abego-software.de/Beta.html#TiddlerAliasPlugin

On Apr 15, 4:32 pm, user4815162342 <neilmshel...@yahoo.com> wrote:
> Thanks for your suggestions. So apparently there are no known plugins
> that do this automatically?
>
> Wait, so this has been discussed before... I guess I should have done
> a more thorough search before asking.
>

> There's this thread from 2007.http://groups.google.com/group/tiddlywiki/browse_frm/thread/a0b8c9000...

Reply all
Reply to author
Forward
0 new messages