← Back to team overview

kicad-developers team mailing list archive

Re: PCBNew Find and "match words"

 

I just looked and it appears that this got removed.  I guess we will
have to add FR_SEARCH_REGEX to the FIND_REPLACE_FLAGS enum in
include/base_struct.h and then add a wxRegex search to
EDA_ITEM::Matches() to provide regular expression searching.

On 7/26/19 5:21 PM, Jeff Young wrote:
> Oh cool.  I’ll look into it….
> 
>> On 26 Jul 2019, at 14:57, Wayne Stambaugh <stambaughw@xxxxxxxxx> wrote:
>>
>> I implemented regular expression search method in EDA_ITEM but I never
>> finished hooking everything up at the UI level.  So unless someone
>> removed it, it should still be there.
>>
>> Cheers,
>>
>> Wayne
>>
>> On 7/26/19 3:41 PM, Jeff Young wrote:
>>> I went with something similar to Seth’s proposal, only based on Eeschema’s find (so no regular expressions yet).
>>>
>>> Most of the workings are down in EDA_ITEM, so if we add regex matching we’ll get it in both Eeschema and Pcbnew.
>>>
>>> Cheers,
>>> Jeff.
>>>
>>>
>>>> On 26 Jul 2019, at 13:11, Seth Hillbrand <seth@xxxxxxxxxxxxx> wrote:
>>>>
>>>> On 2019-07-26 14:39, Jeff Young wrote:
>>>>> PCBNew’s current Find does a match against the whole string.  I think
>>>>> it would be more intuitive with a ‘*’ in front and back of the search
>>>>> string (so that it finds partial matches).
>>>>> Any other opinions?
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>> Hi Jeff-
>>>>
>>>> Here's a mockup of something I was poking at a while ago.  Different processing for different purposes.  As long as we remember the checkboxes between uses, people's search preferences are allowed/respected.
>>>>
>>>> -Seth<FindWindow.png>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>> _______________________________________________
>> 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
> 


References