> I would like to alert when a tag tiddler is about to be saved with a
> new name in order to give the user the option to update all tiddlers
> with that tag.

Your best bet is probably creating a plugin which hijacks[1] the store's 
saveTiddler method - something like this:

(function() {

var saveTiddler = TiddlyWiki.prototype.saveTiddler;
TiddlyWiki.prototype.saveTiddler = function(title, newTitle, newBody,
     modifier, modified, tags, fields, clearChangeCount, created) {
     if(newTitle != title) {
         // do stuff
     }
     return saveTiddler.apply(this, arguments);
};

})();

An alternative might be to use the store's notification system[2], but 
that doesn't lend itself to detecting renames.


-- F.


[1] http://tiddlywiki.org/wiki/Dev:Hijacking
[2] http://tiddlywiki.org/wiki/Dev:Notify

--

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


Reply via email to