← Back to team overview

kicad-developers team mailing list archive

Re: Footprint filter match behavior

 

On Tue, Mar 14, 2017 at 05:49:28PM +0100, Simon Richter wrote:
> Hi,
> 
> On 14.03.2017 17:30, Chris Pavlina wrote:
> 
> >> The regex matcher should give you good results for "^R".
> 
> > I think people would be opposed to using regexes in the footprint
> > filters. I like having them in some places as an option, but they're
> > complicated for people who aren't programmers, and I don't want to use
> > the combined matcher for footprint filters because I'd like to reduce
> > false positives here (as a long match list is unwieldy).
> 
> Ideally we'd have the same search behaviour in all search boxes,
> although I see that part selection is different from footprint selection
> because the use case "same part number, different vendor prefix" doesn't
> come up. Same behaviour is less surprising though.

To be fair...the footprint filter list isn't really a search box.

> 
> We could give priority to results anchored on the left side, as well as
> based on the left of the match in any case.

This does work. In fact the component selector already does this -
earlier matches score higher, and matches are sorted by score.

Maybe I'll try that out and see how it works for footprints.

> 
>    Simon
> 




References