YourSearchPlugin and builtin (default) search

19 views
Skip to first unread message

RA

unread,
Mar 24, 2009, 8:55:34 PM3/24/09
to TiddlyWiki
I like having two modes of search, "regular" and - should I call it
"casual"? :)

So I keep chkRegExpSearch unchecked and use "/.../" when I need a
regular search. Here is the problem - I want the casual search to
retain it's casualness provided by having chkCaseSensitiveSearch
unchecked. But I expect the regular search to be very punctual with my
regular expressions and not modify them in any way, especially in such
a debilitating and inoverrideable way as adding "i" flag.

Default TW search:
===============
* The logic behind combining chkRegExpSearch and
chkCaseSensitiveSearch is borked. Regular expressions are case
sensitive. The best would be (and I know Udo had already suggested
this) to remove the chkRegExpSearch option and have RegExp search
invoked via "/.../" by users who know RegExp and realise that it is
only natural for RegExp to disregard the chkCaseSensitiveSearch flag.

* Not sure if this is doable but it would be great if the search
flags could be adapted to the context of TiddlyWiki in a meaningful
way, for example limit the search to the story only and use "g" for
global search?


YoursearchPlugin:
===============
Regular expression search (at least the one invoked explicitly using
"/.../" syntax) should be case sensitive and not be driven by the
chkCaseSensitiveSearch option.


--R

FND

unread,
Mar 25, 2009, 10:23:46 AM3/25/09
to Tiddl...@googlegroups.com
> The logic behind combining chkRegExpSearch and chkCaseSensitiveSearch
> is borked. Regular expressions are case sensitive.

That's an interesting observation; I never noticed that (see below).
That might be considered a bug, so could you raise a ticket for this
particular issue?

> The best would be [...] to remove the chkRegExpSearch option and


> have RegExp search invoked via "/.../"

I'd like this as well (since I often don't bother manually activating
the RegEx option).
However, I'm not sure whether that's core territory or whether it should
be provided by a simple plugin.
Either way, could you raise a (separate) ticket for this as well?

> it would be great if the search flags could be adapted to the
> context of TiddlyWiki in a meaningful way

I like that idea. Perhaps add it as an afterthought to the ticket above?


-- F.

Reply all
Reply to author
Forward
0 new messages