Great answer.

thanks

TonyM

If you have not found an easy way to do it with TiddlyWiki, you have missed
something.
www.tiddlywiki.com



On Wed, Apr 22, 2009 at 02:46, Eric Shulman <elsdes...@gmail.com> wrote:

>
> > always loosing cookies that I needed the cookie jar. Whilst other cookie
> > settings usually have a local effect eg; Show Animations, Breadcrumbs and
> > chk on tabs values etc...this is the only one I have come across that has
> a
> > non local effect, ie it effects other plugins that make core calls.
>
> Many option settings are used throughout the core code as well as
> plugin code.  Just search your document source (using a text editor)
> for instances of "config.options.chk" and you will see hundreds of
> instances where a setting that is managed in one place can have far-
> reaching effects on numerous features defined elsewhere.
>
> The real problem here is that RemindersPlugin has simply assumed that
> the core search() function always searches within text.  In fact,
> there's no reason for the plugin to even use the core search function
> at all!  It would be more efficient for that plugin to include it's
> own simple tiddler text search code, which would also make it immune
> to hijacks by code in other plugins.
>
> Here's the relevant part of the *current* RemindersPlugin code:
> -------------------------------------------------------
> window.findTiddlersWithReminders = function findTiddlersWithReminders
> (baseDate, leadtime, tags, limit)
> {
>   var macroPattern = "<<(reminder)(.*)>>";
>   var macroRegExp = new RegExp(macroPattern,"mg");
>   var matches = store.search(macroRegExp,"title","");
> -------------------------------------------------------
>
> To replace use of the core store.search function, simply change this:
>
> var matches = store.search(macroRegExp,"title","");
>
> to this:
>
> var matches=[];
> store.forEachTiddler( function(title,tiddler){
>        if (macroRegExp.exec(tiddler.text)) matches.push(tiddler);
> });
>
> enjoy,
> -e
>
> >
>

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

Reply via email to