> Find the following lines in the plugin:
> Comment them out by adding '//' at the start of each line. Save the
> changes, reload the wiki and the options button should be gone. A more
Please do *not* modify the plugin directly. "variant plugins" can
spread uncontrollably in the wild (just share your document with one
person who re-uses it), and they can be a major headache when people
start reporting problems to *me* (e.g., "the 'options' are
missing!"...), because they don't realize that they are using a
variant.
Although I try to incorporate the most popular and/or useful options
into each plugin I write, so that people don't have to make changes
themselves, this isn't always possible (or practical... or
desirable). To address this, I try to make sure that the relevant
features of a plugin can be readily overridden by using additional
configuration tiddlers, without needing to modify the original
distribution.
In fact, SearchOptionsPlugin's reporting functions are specifically
written so that they can be superseded by alternative or modified
functions defined in a separate tiddler, tagged with systemConfig,
using ANY name you like, such as [[SearchOptionsPluginTweaks]].
Simply copy/paste the desired 'report' function from the
SearchOptionsPlugin and then modify it as needed. For your use-case,
you would write something like
---------------------
//{{{
window.formatSearchResults_again=function(text,matches)
{
var title=config.macros.search.reportTitle
var body='';
// search again
body+='{{span{<<search "'+text.replace(/"/g,'"')+'">> /%\n';
body+='%/<html><input type="button" value="search again"';
body+=' onclick="var
t=this.parentNode.parentNode.getElementsByTagName(\'input\')[0];';
body+=' config.macros.search.doSearch(t); return false;">';
body+='</html>}}}\n\n';
return body;
}
//}}}
---------------------
note: it does seem like this is a reasonable <<option>> to add to the
plugin. Check on TiddlyTools in a few days (busy today) and I should
have an update to the official distro. I'll post a followup here when
it is available.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--
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.