
A search box for rules?
mbattersby opened this issue ยท 2 comments
From the curseforge comments:
Can we please get a search function to filter our rules? I have a lot of rules setup and trying to find certain ones is a real pain if I can't keyword search the list. Thanks!
How would this work? What would you type and what would it find?
This wasn't my suggestion, but I can see a use-case for it. I'm currently sitting at 55 rules. I have rules for each Class, each Race, a couple of Professions and a handful of Class Specs. It would be neat if I could search the word "Class" and it would filter the list down to only the rules containing a "Class : something" condition; similarly with "Race". Perhaps I search "Mage" and it returns my "Class : Mage" as well as my "Specialization : Mage : Arcane", "Specialization : Mage : Fire", etc. If I search "Profession", it returns my rules containing "Advanced : profession:something"
This would allow me to quickly find a rule if I need to edit it, or allow me to confirm I didn't miss any classes/races, etc. when creating all the rules.
I still think this is a good idea, and the probable mechanism is to have the rule parser annotate the object with a keywords list that munges a heap of attributes together.
The keywords would probably include all of the condition tags and localized texts, the raw condition args, the action tag and maybe localized texts, and the action args plus all the mount attributes if the arg is a single mount.
Given how slow string.find is, I suspect for performance they should all be jammed into one long string so it's only a single call.