Hi,
I am looking for a way to edit the title of a group of tiddlers. I would
first filter the tiddlers by tag and then execute the batch edit on this
group. What I want to do is to put something at the beggining of each
tiddler's tiddler (like adding prefix) without changing the rest of the
tittle. So in the end each tiddler will have the same prefix but different
rest of the title.
The BatchEdit, BatchManipulator and TiddlerTool plugins I found don't seem
to have this funcionality.
In the old discussions here, I found a reply to someone who wanted to be
able to add something to the end of the text of a group of tiddlers. It
looks like this:
store.suspendNotifications();
store.forEachTiddler(function(
title, tiddler) {
if(tiddler.tags.contains("foo")) {
// TODO: check for existing Review section first
var body = tiddler.text + "\n!!!Review\n";
store.saveTiddler(title, title, body, tiddler.modifier,
tiddler.modified, tiddler.tags, tiddler.fields, false,
tiddler.created, tiddler.creator);
}
});
store.resumeNotifications();
So the main difference is that I want to edit the title and not the body
(text field).
I should also say I am no coder and I don't even know how to run the script
above or its adjusted version. But I guess I could figure that out.
Any ideas if the script above could be adjusted? If so, any tips how to run
the script? Or is there a different solution?
I would be very glad for help.
Thanks,
Kalmir
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/cfcb82d5-7f8f-447a-9e1f-f23a8543bf94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.