>The JOSM search box help lists 21 conditions, offers case >(in)sensitiveness and optional regular expressions, still misses a >simple logical AND and offers a myriad of possible combinations.
What do you mean by missing AND? Logical AND is imlicit so "highway=tertiary oneway=yes" will search for highways that are both tertiary and oneway. I've also added operator ? to make search pattern compatible with mappaint, so "highway=tertiary oneway?" will search for tertiary highways with oneway=yes, true, 1 or on. Maybe we should add explicit and (& or AND) for clarity. The mappaint rules are indeed simple, but have very limited functionality. Though it looks like it's sufficient for most use cases. I'm not saying we should replace every k="highway" v="tertiary" with p="highway=tertiary". The old k,v,b attributes can stay, just new attribute - p (as search pattern) will be added. >When I read the search help you should probably better say: the search >is exposed to highly advanced users or developers ;-) Can you be more specific here? The search function doesn't look that difficult to me. What we can do is hide more advanced features from the dialog, it can look scary at the first look. But otherwise I think somebody who knows what logical AND and OR is should be able to fully use the search function. -- Jiri _______________________________________________ josm-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/josm-dev
