> Hey Monty, > > > IMO if any of this special handling is in place, the embedded > > search code should be split into a standalone xml file and > > placed with the core searches bundle.. This might really > > make sense since the creation of the core searches directory. > > In one way, yes, but then there's the overhead of loading and parsing an XML > file for each core function... >
True, but what about forcing everyone to load what are optional searches? I personally never use the phone number lookup, or currency conversion and would not load them if I could avoid it.. But realistically it is a minor thing.. > Here's the relevant portion of search.htm: > > // detect special commands > if (!special(t)) <snip> > > I think most if not all of those are valid hard-coded shortcuts. The phone > number auto-detection may be the exception, since it's not globally > applicable, but it's convenient enough for US people, so I don't mind - it's > never gotten in my way so far. > > But maybe this is not what you meant...? I guess none of the above can be > implemented as standard searches, since they don't have a given prefix. Yeah.. I think what was originally done was the searches were split out, given a prefix and an alias was created for backward compatiblity.. This could account for some of the aliases in the vanilla aliases.txt file.. I think this backward compatibility is the reason I was over-ruled over the notion of moving all of them to standalone files... Other than the handling of url detection and the calc function, I was never in favor of the special handling.. I guess the argument could be made that the calc function should be split out as well, leaving only the URL detection.. But hey, thats just my opinion.. > > As for aliases, the ".", "+" and the "#" bite me every time with ".NET", > "C++" and "C#" - I'd love to get rid of those. Sounds good to me!.. Mont ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ DQSD-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dqsd-devel
