PeakRDL-html icon indicating copy to clipboard operation
PeakRDL-html copied to clipboard

search are not complete

Open saberxt opened this issue 3 years ago • 1 comments

Hi, when we are searching some keyword in all the regmap, it seems we could not get all the result.

For example, there is a address map like below:

  • regmap
    • timing ctrl
      • slot_ctrl0
        • rg_t_slot
      • slot_ctrl1
        • field1
      • slot_ctrl2
        • field2

When we are searching the keyword "slot", we could only get the result like below: regmap.timing_ctrl.slot_ctrl0
regmap.timing_ctrl.slot_ctrl1
regmap.timing_ctrl.slot_ctrl2
But we could not see the result, which should be regmap.timing_ctrl.slot_ctrl0.rg_t_slot

saberxt avatar Aug 12 '22 09:08 saberxt

Thanks for pointing this out! This behavior was somewhat intentional - field results are hidden unless no other matches are found to avoid clutter. That said, I agree that your example results in surprising behavior. I'll look into fixing this. Search results are something I am constantly adjusting. There is a fine balance to returning results that "feel correct" and it is difficult to anticipate.

amykyta3 avatar Aug 18 '22 05:08 amykyta3