kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #40741
Re: PATCH: exact match of component with sub-units in schematic did not show
-
To:
John Beard <john.j.beard@xxxxxxxxx>, kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Tue, 21 May 2019 13:26:09 -0400
-
Autocrypt:
addr=stambaughw@xxxxxxxxx; prefer-encrypt=mutual; keydata= mQGiBEM0hxQRBAC2fNh3YOVLu1d5GZ0SbrTNldGiGnCJPLqzEnqFX9v6jmf33TMt6EmSLkl6 Wtfkoj0nVwKxcYmJkA8DX0QAokBkwNIzhSsBzQvthBLIk/5LnPVVKrEXOcL4mUyH1doKlkaE slgJozNa6Av+oavcvD02o1zJOloBbaHlNlyRt7fKswCgtIFlVjWggVH/15KfWk+Qo5JVPbME AIUBAQyL2OAx0n60AWec2WHnO9buHuG0ibtICgUMkE+2MRmYyKwYRdyVwGoIUemFuOyHp0AJ InX4T+vy2E7vkwODqjtMLfIoRkokW74Fi4nrvjlhOAw/vdq/twLbAmR9MOfPTpR4y7kQy1O2 /n+RkkRvh26vTzfbQmrH7cBJhk6aA/9Uwvu3E4zNJgHVZeS0HyWtmR1eOPPRbnkPgJTToX5O KMKzTJI/FX6kT7cFoCamitHrW3BJP4Dx+cMMsa47EGxqVTdbVJ4LjogsXTXxb+0Fn1u4zBdx x3Cer6O7+hqWy7zvpzeC6nSREjqDKa5CgHtv/GLm5uFPOmsjAsnHj2tlBrQmV2F5bmUgU3Rh bWJhdWdoIDxzdGFtYmF1Z2h3QGdtYWlsLmNvbT6IeAQTEQIAOBYhBOffs6CbblRzBkv33BtR cWlZ+CReBQJbFBS2AhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEBtRcWlZ+CReMI8A nRbrLkzp7+c2f0vX7sfg4ICX8LAKAJ9uClo4uJajmZa5zZrL2nKdZlUwIrkCDQRDNIcxEAgA gCru+3/aOC6RCjpvYC72wY+d5SmHphC6yeiV2/mOumyt5MLo/Ps2GznZr11JspqFk5K/Zpvp MMLqqjDZ39+50a2iKRQFJ6NlK+hJWMmj6eJygQrCwYo3Gjc6CqfrqUv+8VSnf/i5sIZmtOVA 4ZjML18MuBvMSsNdVLFJd5HNnYb1iOECpvqdPVh/21LLCEw7MUUGGnHBhCrmk2aJe5hFmcSN g4ldBcXrgMQBwf7aMVoobXBMFDb/IENByXn0llB7Gr2IFMRmNS9/p8s/II1Yl2bTqyX4FSz8 cfn7C9KEz7faZ7wzAcpwHFC/zs3JoAjJ0IEKdNUpIwAlKMzT3CzctwADBQf/cxpG28MKyrqk nNmq/8LQLy+x6FSYXBLjxQz9BiBNYeesDZQ6J5UbL1mjpJzMa5tLZypPYo4bbGyR22hrbyDF K7m6AcVaMIJKl98g4ukMutFfAJyRDaREH5Zl/X1P4u1Z/yaAIy9mKaNbaK1/5djNJ5wCTFen TUgAp9xdc30kGkFDdLJFp5uxDY4P0vaZiZdjUCvDM3Zjv5IzpNOfxVqTUBQNUP/BnnKhkk0p DTD6s3X8S+D0rOtEBQ8K0cwERI/E8EFa8nj0TNw4e2MYGR8wg+SxqJ7z5f0zPY0bO6G9DDFB wYCqzzPWGqdAh9vA5971TAbPERtdFybhkurozp2SfYhJBBgRAgAJBQJDNIcxAhsMAAoJEBtR cWlZ+CResHUAniULLCWiT26ieRTl7N2vS6vBo/DuAJ4m7Ss/gyiW6ybTn1ctDXAUgm2QVQ==
-
In-reply-to:
<57F73624-BAF7-4372-A802-774AE60CE8D2@gmail.com>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
John,
If this is not acceptable, would an option that allows the user to turn
this feature on or off be an acceptable solution. In some use cases, I
can see the value of the this patch.
Henner,
If John, is OK with a user option, would you be OK with making this
behavior user configurable?
Cheers,
Wayne
On 5/2/19 1:24 PM, John Beard wrote:
> I had a quick look at this. I'm not sure expanding all search hits to
> show sub units is the best fix here. It means for the 7400 series that
> you can fit only 3 or 4 search hits in the dialog at default size.
>
> I think it would be reasonable to expand only as far as the LIBID nodes.
>
> Cheers,
>
> John
>
> On 2 May 2019 17:22:12 BST, Wayne Stambaugh <stambaughw@xxxxxxxxx> wrote:
>
> Hey Henner,
>
> On 5/2/19 12:18 PM, Henner Zeller wrote:
>
> On Tue, 30 Apr 2019 at 20:24, Henner Zeller <h.zeller@xxxxxxx>
> wrote:
>
>
> Hi,
> so here one digit patch.
>
> Problem Symptom: in the schematic symbol chooser, if you
> search for an
> exact match of a component with multiple units, it is not
> selected.
> For instance, search for
>
> 74LS00
>
> The scored element is in the tree, but you need to manually
> unfold it
> (see before.png image). This usually works otherwise (I
> suspect it has
> to do with the fact that there are sub-units).
>
> The attached change will reliably select the first unit of that
> particular symbol and fix the problem (after.png image).
>
> Now it might be up for debate if the search should actually
> unfold to
> the first unit or if the tree unfolding should stop at the
> 74LS00 part
> - I guess if the latter is wished, something dependent on
> tree-children needs to be introduced. I leave that up to you.
>
> Attached: patch (against 5.1 branch),
>
>
> It also applies cleanly against current head, which has the same
> problem.
>
>
> I'm on it. I'm digging through my backlog of patch reviews. I should
> get to it today or tomorrow.
>
> Cheers,
>
> Wayne
> ------------------------------------------------------------------------
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References