I did already look there, but didn't see anything that addressed my
problem.

I did find something indicating that the code was changed two years
ago to allow what I'm trying to do, but I'm not at the point where I
can make it useful (or tell if it could be made useful):

Here's the discussion:
http://trac.tiddlywiki.org/ticket/387

It addresses a change that was made to the bit of code below (addition
of the "match" argument).  I just don't understand what this stuff has
to do with the search macro.

// Return an array of tiddlers matching a search regular expression
TiddlyWiki.prototype.search = function
(searchRegExp,sortField,excludeTag,match)
{
        var candidates = this.reverseLookup("tags",excludeTag,!!match);
        var results = [];
        for(var t=0; t<candidates.length; t++) {
                if((candidates[t].title.search(searchRegExp) != -1) || 
(candidates
[t].text.search(searchRegExp) != -1))
                        results.push(candidates[t]);
        }
        if(!sortField)
                sortField = "title";
        results.sort(function(a,b) {return a[sortField] < b[sortField] ? -1 :
(a[sortField] == b[sortField] ? 0 : +1);});
        return results;
};





On Sep 18, 1:42 pm, FND <[email protected]> wrote:
> > Cool plugin, but it's not quite what I'm looking for. I specifically
> > need asearchbox that works just like the normalsearch(searching
> > the full text of tiddlers) but returns only tiddlers tagged "Content."
>
> This might be of interest:
>      http://tiddlywiki.org/wiki/Enhanced_Search
>
> -- 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