I need a mass copy to new root name utility

Working with @EricShulman’s PasteUp I want to copy sets of tiddlers to a new root name.

Here is an example …

Screenshot 2025-10-16 17.02.39

I need to copy all eleven to another root such that …

set/frames-6

… becomes …

set2/frames-6

… for all 11 copied tids roots change to “set2/”.

Can you give me a clue to the how to of it?

Tx, TT

A way that doesn’t involve custom coding.

Use the advanced filter to export your current set.

Import them again into a separate TW that is set up to use @Mohammad 's tiddler commander – Commander Plugin 2.1.14 — Streamline tiddler management: bulk operations for titles, tags, and fields

Use commander to remove set/ prefix. Then use it again to add set2/ prefix. Export and re-import into the original TW file.

If you also use @pmario 's bundler (Bundler Edition — Improve your export / import workflow) then you won’t have to actually export to a physical file.

2 Likes

This is a hypothetical (because I’ve never did it myself) advice:

Technically, you want to rename tiddlers identified by a filter.

Going deeper, renaming in this particular case means:

  1. take set/frames-6

  2. remove set/ prefix

  3. add set2/ prefix

Tiddler Commander plugin can do this: Commander Plugin 2.1.14 — Streamline tiddler management: bulk operations for titles, tags, and fields

You can do this with TiddlyTools/Search/Filters:

  • enter a suitable filter (e.g., “[prefix[set/frames-6]]”)
  • when the list of matching tiddlers appears, click the “clone tiddlers” button (2nd icon, upper-right)
  • in the modal dialog:
    • enter “set/frame-6” in the “replace” input
    • enter “set2/frame-6” in the “with” input
    • press the “clone” button

That’s it. You’re done. The tiddlers have been cloned with their titles changed using the “replace” and “with” values.

enjoy,
-e

The easiest way is to use the relink sub plugin for titles

just rename the top tiddler and hey presto.

to copy, first export the first set and reimport them after the rename.

How about something like this?:

title: clone-by-prefix
from: set/
to: set2/

From prefix: <$edit-text field="from"/>

To prefix:  <$edit-text field="to"/>

<$button>
  Clone all
  <$list filter="[prefix{!!from}]" variable="old">
     <$action-createtiddler $basetitle={{{ [<old>removeprefix{!!from}addprefix{!!to}] }}} $template=<<old>> />
  </$list>
</$button>

-----------

!!! Tiddlers to clone

<<list-links [prefix{!!from}] >>

!!! Cloned tiddlers

<<list-links [prefix{!!to}] >>

It gives you edit boxes from the two prefixes and a button to clone them, as well as before and after lists of tiddlers.

Minor update for slightly prettier look:

CloneByPrefix.json (1.6 KB)

Thank you: @Mark_S, @vuk, @EricShulman, @TW_Tones, @Scott_Sauyet … for responding so quickly … it all helped.

FWIW the export-import idea can’t work for the use-case.
The others will.

Grazie
TT