> One issue I noticed is that when using the basics.html template, Regular
> Expressions don't seem to work when using the search box in the upper right
> hand corner. (Goto/Search:)
> So, am I missing an option somewhere? Is this a feature or a bug?
Thanks for the problem report. Your description made it relatively
easy to reproduce and quickly locate the errant piece of code. Good
job!
The problem arises from an omission in the code in GotoPlugin, which
provides a *combined* goto/search input field. When you press ENTER,
it opens and renders the specified tiddler. When you press SHIFT-
ENTER it invokes a search (via the TWCore story.search() function) and
displays search results.
However, the call to story.search() is currently only passing in the
search text that was input, without also passing the option flags for
case-sensitivity and regular expression handling. Thus, searching
from the *combined* goto/search input field only does case-insensitive
searches of plain text. In contrast, the input field used by the
<<search>> macro (and also in the search again form) *does* pass the
option flags for case and regexp handling, so it will recognize the
regexp input and subsequent searches produce the desired result.
I will update the GotoPlugin code to use the option flags. I'm
currently in the middle of some messy coding experiments, so it will
probably be a week or so before I can take care of this.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact