> *Wouldn't it be good if *... entering #FooBar in tiddler.text resulted 
> in that Tiddler being tagged FooBar 

I remember there was a similar discussion a few months ago, and I 
thought I'd written some code back then - but apparently not... 
(Probably because determining a foolproof pattern is hard.)

Anyway, you could hijack saveTiddler, parse tiddler.text and insert the 
tags - something like this perhaps:
---------------
(function() {

var txt = "foo\n\nlorem #aaa ipsum\ndolor #bbb sit amet\n\nbar";

var _saveTiddler = TiddlyWiki.prototype.saveTiddler
TiddlyWiki.prototype.saveTiddler = function(title, newTitle, newBody,
        modifier, modified, tags, fields, clearChangeCount, created) {
        var pattern = /\s#(.+?)\s/g; // XXX: capturing ignored by match
        var inlineTags = newBody.match(pattern);
        arguments[5] = tags.concat(inlineTags);
        _saveTiddler.apply(this, arguments);
};

})();
---------------


-- F.

--~--~---------~--~----~------------~-------~--~----~
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